about summary refs log tree commit diff
path: root/app/validators/follow_limit_validator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/validators/follow_limit_validator.rb')
-rw-r--r--app/validators/follow_limit_validator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/follow_limit_validator.rb b/app/validators/follow_limit_validator.rb
index eb083ed85..409bf0176 100644
--- a/app/validators/follow_limit_validator.rb
+++ b/app/validators/follow_limit_validator.rb
@@ -14,7 +14,7 @@ class FollowLimitValidator < ActiveModel::Validator
       if account.following_count < LIMIT
         LIMIT
       else
-        account.followers_count * RATIO
+        [(account.followers_count * RATIO).round, LIMIT].max
       end
     end
   end