1
0
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00
Commit Graph

3 Commits

Author SHA1 Message Date
Eugen Rochko
feed07227b
Apply a 25x rate limit by IP even to authenticated requests () 2017-12-11 15:32:29 +01:00
Eugen Rochko
a865b62efc
Rate limit by user instead of IP when API user is authenticated ()
* Fix  - Rate limit by user instead of IP when API user is authenticated

* Fix code style issue

* Use request decorator provided by Doorkeeper
2017-12-09 14:20:02 +01:00
Matt Jankowski
f0634ba876 Coverage improvement and concern extraction for rate limit headers in API controller ()
* Coverage for rate limit headers

* Move rate limit headers methods to concern

* Move throttle check to condition on before_action

* Move match_data variable into method

* Move utc timestamp to separate method

* Move header setting into smaller methods

* specs cleanup
2017-06-07 17:23:26 +02:00