Fix media API limit (#17272)
parent
52b05dad34
commit
df31a1a8e6
|
@ -55,7 +55,7 @@ class Rack::Attack
|
|||
end
|
||||
|
||||
throttle('throttle_api_media', limit: 30, period: 30.minutes) do |req|
|
||||
req.authenticated_user_id if req.post? && req.path.start_with?('/api/v1/media')
|
||||
req.authenticated_user_id if req.post? && req.path.match?('^/api/v\d+/media')
|
||||
end
|
||||
|
||||
throttle('throttle_media_proxy', limit: 30, period: 10.minutes) do |req|
|
||||
|
|
Loading…
Reference in New Issue