Skip to content

Commit

Permalink
Fix undefined method error. (mastodon#10867)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaeh authored and Gargron committed May 28, 2019
1 parent 0e3e74d commit 2d3aa6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def paging_request?
end

throttle('throttle_unauthenticated_api', limit: 300, period: 5.minutes) do |req|
req.remote_ip if req.api_request? && !req.authenticated?
req.remote_ip if req.api_request? && req.unauthenticated?
end

throttle('throttle_api_media', limit: 30, period: 30.minutes) do |req|
Expand Down

0 comments on commit 2d3aa6f

Please sign in to comment.