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:
parent
e8f50b7ad5
commit
84ba247982
@ -108,6 +108,12 @@ class Comment extends ImmutablePureComponent {
|
|||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
if (!status) return null
|
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) {
|
if (isHidden) {
|
||||||
return (
|
return (
|
||||||
<div tabIndex='0' ref={this.setContainerNode}>
|
<div tabIndex='0' ref={this.setContainerNode}>
|
||||||
|
@ -325,6 +325,11 @@ class Status extends ImmutablePureComponent {
|
|||||||
return null
|
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) {
|
if (isComment && !ancestorStatus && !isChild) {
|
||||||
// Wait to load...
|
// Wait to load...
|
||||||
// return <StatusPlaceholder />
|
// return <StatusPlaceholder />
|
||||||
|
Loading…
Reference in New Issue
Block a user