Added new spam_flag to Accounts, replacing is_flagged_as_spam
• Added: - new spam_flag to Accounts, replacing is_flagged_as_spam - null/0: no spam, 1: spam, 2: safe from spam • Updated: - Comment, Status to reflect changes • Todo: - Fully remove is_flagged_as_spam - Update SortingQueryBuilder
This commit is contained in:
@@ -110,7 +110,7 @@ class Comment extends ImmutablePureComponent {
|
||||
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) {
|
||||
if (status.getIn(['account', 'is_spam']) && status.getIn(['account', 'id']) !== me) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
@@ -326,7 +326,7 @@ class Status extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
//If account is spam and not mine, hide
|
||||
if (status.getIn(['account', 'is_flagged_as_spam']) && status.getIn(['account', 'id']) !== me) {
|
||||
if (status.getIn(['account', 'is_spam']) && status.getIn(['account', 'id']) !== me) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user