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 hiyuki2578 committed Oct 2, 2019
1 parent df94b94 commit e765603
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 e765603

Please sign in to comment.