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:
@@ -12,7 +12,7 @@ class FollowLimitValidator < ActiveModel::Validator
|
||||
class << self
|
||||
def limit_for_account(account)
|
||||
adjusted_limit = account.is_pro ? 50000 : LIMIT
|
||||
adjusted_limit = account.is_flagged_as_spam ? 0 : LIMIT
|
||||
adjusted_limit = account.is_spam? ? 0 : LIMIT
|
||||
adjusted_limit = !account.user.confirmed? ? 10 : LIMIT
|
||||
|
||||
if account.following_count < adjusted_limit
|
||||
|
||||
Reference in New Issue
Block a user