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:
Developer
2021-02-18 23:46:53 -05:00
parent bf1d00b5f8
commit 2a8ca2cd56
13 changed files with 34 additions and 12 deletions

View File

@@ -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
}

View File

@@ -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
}