Do not display posts with content warning
This commit is contained in:
parent
6e5d649876
commit
b23ad379c8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue