for-pi2 #2

Merged
norbert.tretkowski merged 29 commits from for-pi2 into main 2023-11-24 07:54:19 +01:00
Showing only changes of commit c76dfedac1 - Show all commits

View file

@ -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;
}; };