diff options
author | Hinaloe <hina@hinaloe.net> | 2019-05-28 21:31:51 +0900 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-19 15:38:26 -0600 |
commit | 641bc18f290f10beb3b20984ac41b28dd9d0d361 (patch) | |
tree | b34253982cc894bc37a9f905a409beb9d669c1a2 /config | |
parent | 911be126f66d39de63516949f0ac0a1dfcac6c97 (diff) |
Fix undefined method error (#10868)
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/rack_attack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index 29c136d3d..af39ab4b1 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -83,7 +83,7 @@ class Rack::Attack end throttle('throttle_unauthenticated_paging', limit: 300, period: 15.minutes) do |req| - req.remote_ip if req.paging_request? && !req.authenticated? + req.remote_ip if req.paging_request? && req.unauthenticated? end API_DELETE_REBLOG_REGEX = /\A\/api\/v1\/statuses\/[\d]+\/unreblog/.freeze |