Do not display posts with content warning

This commit is contained in:
Norbert Tretkowski 2024-11-16 11:19:28 +01:00
parent 6e5d649876
commit b23ad379c8
Signed by: norbert.tretkowski
GPG key ID: EAA31A3693AAB231

View file

@ -150,7 +150,7 @@ const displayPost = function(post) {
const processPosts = function(posts) { const processPosts = function(posts) {
posts = posts.filter((post) => { 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; return posts;