diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-09 14:56:31 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-11-09 14:56:31 +0100 |
commit | 9201398507be60ee67c1b36d3763da800812af5b (patch) | |
tree | 31d63d5504e2041f0ad022a6181aaafeb273f6e7 /app/validators | |
parent | a2a254625b7b1a718038b0847e89dd3c20511197 (diff) | |
parent | ed7c5f94f7c8c062c3a931fd2cf4f37433c81c13 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/follow_limit_validator.rb | 2 |
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 |