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:
@@ -174,7 +174,7 @@ module Admin
|
||||
end
|
||||
|
||||
def reset_spam
|
||||
@account.is_flagged_as_spam = false
|
||||
@account.spam_flag = Account::SPAM_FLAG_CLASS_MAP[:safe]
|
||||
@account.save!
|
||||
redirect_to admin_account_path(@account.id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user