]> cat aescling's git repositories - mastodon.git/commit
Rate limit by user instead of IP when API user is authenticated (#5923)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 9 Dec 2017 13:20:02 +0000 (14:20 +0100)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2017 13:20:02 +0000 (14:20 +0100)
commita865b62efc0f7025f789f4413a03ccacd57db7bb
treefd5e9a005e7788b906129ea2f57b480b77a1f056
parent84cebad49d388a807bfc1f09cad825c6b9469883
Rate limit by user instead of IP when API user is authenticated (#5923)

* Fix #668 - Rate limit by user instead of IP when API user is authenticated

* Fix code style issue

* Use request decorator provided by Doorkeeper
app/controllers/concerns/rate_limit_headers.rb
config/initializers/rack_attack.rb
spec/controllers/concerns/rate_limit_headers_spec.rb