about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-06-15 11:48:08 -0500
committerStarfall <us@starfall.systems>2021-06-15 11:48:08 -0500
commitfadb06ef6e1950a82f08673683e705943b93ba40 (patch)
tree6b68c8a3961b7d1647491477c590c9b7f0ec836b /app/workers
parentf95637178671b1aa0648fa506231717229a6cd8f (diff)
Revert "from monsterfork: [Privacy] Purge and re-download remote accounts if their actor key suddenly changes"
This reverts commit a43c1d3f56c128c992f34b8e2b968de14e02ac48.
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/reset_account_worker.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/workers/reset_account_worker.rb b/app/workers/reset_account_worker.rb
deleted file mode 100644
index f63d8682a..000000000
--- a/app/workers/reset_account_worker.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# frozen_string_literal: true
-
-class ResetAccountWorker
-  include Sidekiq::Worker
-
-  def perform(account_id)
-    account = Account.find(account_id)
-    return if account.local?
-
-    account_uri = account.uri
-    SuspendAccountService.new.call(account)
-    ResolveAccountService.new.call(account_uri)
-  rescue ActiveRecord::RecordNotFound
-    true
-  end
-end