Commit 956c06ea authored by mgabdev's avatar mgabdev

Updated follow limit for pro accounts to 50,000

parent cfda2c25
...@@ -11,10 +11,12 @@ class FollowLimitValidator < ActiveModel::Validator ...@@ -11,10 +11,12 @@ class FollowLimitValidator < ActiveModel::Validator
class << self class << self
def limit_for_account(account) def limit_for_account(account)
if account.following_count < LIMIT adjusted_limit = account.is_pro ? 50000 : LIMIT
LIMIT
if account.following_count < adjusted_limit
adjusted_limit
else else
[(account.followers_count * RATIO).round, LIMIT].max [(account.followers_count * RATIO).round, adjusted_limit].max
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment