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

@ -108,6 +108,12 @@ class Comment extends ImmutablePureComponent {
} = this.props
if (!status) 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 (isHidden) {
return (
<div tabIndex='0' ref={this.setContainerNode}>

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 />