Added (temporary) fix for spam bots statuses to be hidden from timelines, comments

• Added:
- (temporary) fix for spam bots statuses to be hidden from timelines, comments

• Todo:
- Implement a new "spam" structure to allow for accounts to be safe from being (re) marked as spam.
This commit is contained in:
Developer
2021-02-18 16:25:07 -05:00
parent e8f50b7ad5
commit 84ba247982
2 changed files with 11 additions and 0 deletions

View File

@@ -325,6 +325,11 @@ class Status extends ImmutablePureComponent {
return null
}
//If account is spam and not mine, hide
if (status.getIn(['account', 'is_flagged_as_spam']) && status.getIn(['account', 'id']) !== me) {
return null
}
if (isComment && !ancestorStatus && !isChild) {
// Wait to load...
// return <StatusPlaceholder />