about summary refs log tree commit diff
path: root/app/workers/soft_block_worker.rb
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-06-12 18:13:30 -0500
committerGitHub <noreply@github.com>2018-06-12 18:13:30 -0500
commit5cff053944b4327477ca45882c9dd3b1a7a559e8 (patch)
tree83c564879534ea35f468ce319342e011773f24aa /app/workers/soft_block_worker.rb
parent99b2bc2668e79bacd7f8696315206872086ebf3a (diff)
parentf6bb50b6ece555af138df164680189b1ec57da4b (diff)
Merge branch 'master' into 454-allow-keyword-mutes-to-skip-mentions
Diffstat (limited to 'app/workers/soft_block_worker.rb')
-rw-r--r--app/workers/soft_block_worker.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/app/workers/soft_block_worker.rb b/app/workers/soft_block_worker.rb
deleted file mode 100644
index 312d880b9..000000000
--- a/app/workers/soft_block_worker.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: true
-
-class SoftBlockWorker
-  include Sidekiq::Worker
-
-  sidekiq_options queue: 'pull'
-
-  def perform(account_id, target_account_id)
-    account        = Account.find(account_id)
-    target_account = Account.find(target_account_id)
-
-    BlockService.new.call(account, target_account)
-    UnblockService.new.call(account, target_account)
-  rescue ActiveRecord::RecordNotFound
-    true
-  end
-end