Skip to content

Commit

Permalink
Fix undefined method error (mastodon#10868)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinaloe authored and multiple creatures committed Nov 19, 2019
1 parent 911be12 commit 641bc18
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 @@ -83,7 +83,7 @@ def paging_request?
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
Expand Down

0 comments on commit 641bc18

Please sign in to comment.