Skip to content

Commit

Permalink
fix repeating tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 24, 2023
1 parent 501a669 commit 8edf0fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ async function updateTimeline(mode = 'rewrite') {
if(mode === 'rewrite' || mode === 'prepend') cursorTop = tl.cursorTop;
tl = tl.list;
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 Down

0 comments on commit 8edf0fd

Please sign in to comment.