From b23ad379c89743af9a53fdedef5ab521655c9467 Mon Sep 17 00:00:00 2001 From: Norbert Tretkowski Date: Sat, 16 Nov 2024 11:19:28 +0100 Subject: [PATCH] Do not display posts with content warning --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 4b9ff1d..4031985 100644 --- a/script.js +++ b/script.js @@ -150,7 +150,7 @@ const displayPost = function(post) { const processPosts = function(posts) { posts = posts.filter((post) => { - return secondsAgo(new Date(post.created_at)) < maxAge && post.content.indexOf("nitter.") === -1 + return secondsAgo(new Date(post.created_at)) < maxAge && post.content.indexOf("nitter.") === -1 && post.spoiler_text === "" }); return posts;