Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 30, 2023
1 parent 0b38671 commit 0dca584
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function fixTweetThreadLine() {

async function createShamelessPlug(firstTime = true) {
return;

let dimden = await API.user.getV2('dimdenEFF');
chrome.storage.local.set({'followingDeveloper': dimden.following}, () => {});

Expand Down Expand Up @@ -197,7 +197,7 @@ async function updateTimeline(mode = 'rewrite') {
let suspended = tl.suspended;

tl = tl.list;
if((vars.timelineType === 'algo' || vars.timelineType === 'algov2') && !suspended) {
if(vars.timelineType === 'algo' || vars.timelineType === 'algov2') {
tl = tl.filter(t => !seenTweets.includes(t.id_str));
for(let t of tl) {
seenTweets.push(t.id_str);
Expand All @@ -207,7 +207,7 @@ async function updateTimeline(mode = 'rewrite') {
} else if(vars.timelineType === 'chrono-no-retweets') {
tl = tl.filter(t => !t.retweeted_status);
}
if(!user.friends_count && tl.length === 0 && vars.timelineType.startsWith('chrono')) {
if(!user.friends_count && tl.length === 0 && vars.timelineType.startsWith('chrono') && !suspended) {
document.getElementById('timeline').innerHTML = `<span style="color:var(--darker-gray);margin-top:10px;display:block">${LOC.no_tl_tweets.message}</span>`;
return;
}
Expand Down

0 comments on commit 0dca584

Please sign in to comment.