about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-24 21:40:41 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-24 21:40:41 +0100
commit8a880a3d464daf486a10d85b8ee49305aa6b1e5b (patch)
treecc143c4fc9b5e5fd359c2ae51a78ab78297ca627 /app/workers
parent326c75b35b826aa9e807fe7d1972ade41d789663 (diff)
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
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/block_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/block_worker.rb b/app/workers/block_worker.rb
index dc00db197..0820490d3 100644
--- a/app/workers/block_worker.rb
+++ b/app/workers/block_worker.rb
@@ -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