Added filter in account moderation to for spam
• Added: - filter in account moderation to for spam
This commit is contained in:
@@ -58,6 +58,8 @@ class AccountFilter
|
||||
Account.joins(:account_stat)
|
||||
when "sign_up_date_gte"
|
||||
Account.where("created_at >= ?", value)
|
||||
when "spam"
|
||||
Account.where(is_flagged_as_spam: true)
|
||||
else
|
||||
raise "Unknown filter: #{key}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user