]> cat aescling's git repositories - mastodon.git/commit
Limit the number of people that can be followed from one account (#8807)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 4 Oct 2018 15:36:11 +0000 (17:36 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Oct 2018 15:36:11 +0000 (17:36 +0200)
commita46ab86adfc9e4ea182af9a555237f17071e194c
treeed5d073badf675fdc0661c54467cc52de85c90b2
parent186024a058d4b8765a10d87ff3d7f3bdcd2fbb3c
Limit the number of people that can be followed from one account (#8807)

Configurable soft limit of 7,500, and above that, configurable
ratio of 1.1 * followers, controlled by:

- MAX_FOLLOWS_THRESHOLD
- MAX_FOLLOWS_RATIO

Fix #2311
app/models/follow.rb
app/models/follow_request.rb
app/validators/follow_limit_validator.rb [new file with mode: 0644]
app/workers/import_worker.rb
config/locales/en.yml
spec/models/follow_spec.rb