Add specific rate limits for posting and following (#13172)
This commit is contained in:
@ -70,7 +70,6 @@ class Rack::Attack
|
||||
req.remote_ip if req.post? && req.path == '/api/v1/accounts'
|
||||
end
|
||||
|
||||
# Throttle paging, as it is mainly used for public pages and AP collections
|
||||
throttle('throttle_authenticated_paging', limit: 300, period: 15.minutes) do |req|
|
||||
req.authenticated_user_id if req.paging_request?
|
||||
end
|
||||
|
@ -725,7 +725,7 @@ en:
|
||||
'422':
|
||||
content: Security verification failed. Are you blocking cookies?
|
||||
title: Security verification failed
|
||||
'429': Throttled
|
||||
'429': Too many requests
|
||||
'500':
|
||||
content: We're sorry, but something went wrong on our end.
|
||||
title: This page is not correct
|
||||
|
Reference in New Issue
Block a user