about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/workers/block_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/block_worker.rb b/app/workers/block_worker.rb
index 89ba11b55..20bb10408 100644
--- a/app/workers/block_worker.rb
+++ b/app/workers/block_worker.rb
@@ -3,11 +3,11 @@
 class BlockWorker
   include Sidekiq::Worker
 
-  def perform(account_id, target_account_id, defederate: true)
+  def perform(account_id, target_account_id, options = {})
     AfterBlockService.new.call(
       Account.find(account_id),
       Account.find(target_account_id),
-      defederate: defederate
+      defederate: options['defederate']
     )
   end
 end