Commit bf1d00b5 authored by Developer's avatar Developer

Added new follow limit for unconfirmed accounts to 10

• Added:
- new follow limit for unconfirmed accounts to 10
parent c18bcf2b
......@@ -13,6 +13,7 @@ class FollowLimitValidator < ActiveModel::Validator
def limit_for_account(account)
adjusted_limit = account.is_pro ? 50000 : LIMIT
adjusted_limit = account.is_flagged_as_spam ? 0 : LIMIT
adjusted_limit = !account.user.confirmed? ? 10 : LIMIT
if account.following_count < adjusted_limit
adjusted_limit
......
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