]> cat aescling's git repositories - mastodon.git/commit
Add specific rate limits for posting and following (#13172)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 8 Mar 2020 14:17:39 +0000 (15:17 +0100)
committerGitHub <noreply@github.com>
Sun, 8 Mar 2020 14:17:39 +0000 (15:17 +0100)
commit339ce1c4e90605b736745b1f04493a247b2627ec
treebf6f6c697648416c0578fbc0e11132403a85b27c
parent503eab1c1f101e92f163ed4f8457cac9a6193ffc
Add specific rate limits for posting and following (#13172)
23 files changed:
app/controllers/account_follow_controller.rb
app/controllers/api/base_controller.rb
app/controllers/api/v1/accounts_controller.rb
app/controllers/api/v1/statuses/reblogs_controller.rb
app/controllers/api/v1/statuses_controller.rb
app/controllers/application_controller.rb
app/controllers/authorize_interactions_controller.rb
app/controllers/concerns/rate_limit_headers.rb
app/lib/exceptions.rb
app/lib/rate_limiter.rb [new file with mode: 0644]
app/models/concerns/account_interactions.rb
app/models/concerns/rate_limitable.rb [new file with mode: 0644]
app/models/follow.rb
app/models/follow_request.rb
app/models/status.rb
app/services/follow_service.rb
app/services/post_status_service.rb
app/services/reblog_service.rb
app/views/errors/429.html.haml [new file with mode: 0644]
config/initializers/rack_attack.rb
config/locales/en.yml
spec/controllers/account_follow_controller_spec.rb
spec/controllers/api/v1/statuses_controller_spec.rb