Skip to content

Commit

Permalink
fix multiple posts appearing in search sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Oct 31, 2023
1 parent 7223e9a commit 8dc4a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All Rights Reserved
1 change: 1 addition & 0 deletions layouts/search/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ setInterval(async () => {
if(data.length === 0) return;

toRender = [...data, ...toRender];
toRender = toRender.filter((t, i, self) => self.findIndex(t2 => t2.id_str === t.id_str) === i);
newTweets.hidden = false;
if(vars.updateTimelineAutomatically) {
setTimeout(() => newTweets.click(), 10);
Expand Down

0 comments on commit 8dc4a38

Please sign in to comment.