for-pi2 #2
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