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 Gargron committed May 28, 2019
1 parent 00ccf4c commit eb1fbb9
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 @@ -79,7 +79,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 eb1fbb9

Please sign in to comment.