Commit 84ba2479 authored by Developer's avatar Developer

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.
parent e8f50b7a
......@@ -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}>
......
......@@ -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 />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment