Skip to content

Commit eb1fbb9

Browse files
hinaloeGargron
authored andcommitted
Fix undefined method error (mastodon#10868)
1 parent 00ccf4c commit eb1fbb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/initializers/rack_attack.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def paging_request?
7979
end
8080

8181
throttle('throttle_unauthenticated_paging', limit: 300, period: 15.minutes) do |req|
82-
req.remote_ip if req.paging_request? && !req.authenticated?
82+
req.remote_ip if req.paging_request? && req.unauthenticated?
8383
end
8484

8585
API_DELETE_REBLOG_REGEX = /\A\/api\/v1\/statuses\/[\d]+\/unreblog/.freeze

0 commit comments

Comments
 (0)