Skip to content

Commit afb17b7

Browse files
mayaehGargron
authored andcommitted
Fix undefined method error. (#10867)
1 parent e2c0d05 commit afb17b7

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
@@ -58,7 +58,7 @@ def paging_request?
5858
end
5959

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

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

0 commit comments

Comments
 (0)