Add specific rate limits for posting and following (#13172)
This commit is contained in:
1 parent
503eab1c1f
commit
339ce1c4e9
23 files changed
+273
-51
No files matched your search
@@ -20,7 +20,7 @@ class AuthorizeInteractionsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
if @resource.is_a?(Account) && FollowService.new.call(current_account, @resource)
|
||||
if @resource.is_a?(Account) && FollowService.new.call(current_account, @resource, with_rate_limit: true)
|
||||
render :success
|
||||
else
|
||||
render :error
|
||||
|
||||
Reference in new issue
Block a user