Filter out twitter repost spam
This commit is contained in:
parent
de46f7c7b8
commit
c76dfedac1
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ const displayPost = function(post) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const processPosts = function(posts) {
|
const processPosts = function(posts) {
|
||||||
posts = posts.filter((post) => secondsAgo(new Date(post.created_at)) < maxAge);
|
posts = posts.filter((post) => {
|
||||||
|
return secondsAgo(new Date(post.created_at)) < maxAge && post.content.indexOf("nitter.") === -1
|
||||||
|
});
|
||||||
|
|
||||||
return posts;
|
return posts;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue