diff --git a/script.js b/script.js index 48d952f..f31ddf3 100644 --- a/script.js +++ b/script.js @@ -130,7 +130,9 @@ const displayPost = function(post) { }; 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; };