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:
@ -4,6 +4,6 @@ class BlockWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(account_id, target_account_id)
|
||||
BlockService.new.call(Account.find(account_id), Account.find(target_account_id))
|
||||
AfterBlockService.new.call(Account.find(account_id), Account.find(target_account_id))
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user