Make blocks create entries and unfollows instantly, but do the clean up
in the background instead. Should fix delay where blocked person can interact with blocker for a short time before background job gets processed
This commit is contained in:
@ -65,7 +65,7 @@ class Api::V1::AccountsController < ApiController
|
||||
end
|
||||
|
||||
def block
|
||||
BlockWorker.perform_async(current_user.account_id, @account.id)
|
||||
BlockService.new.call(current_user.account, @account)
|
||||
|
||||
@following = { @account.id => false }
|
||||
@followed_by = { @account.id => false }
|
||||
|
Reference in New Issue
Block a user