about summary refs log tree commit diff
path: root/app/workers/unmerge_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/unmerge_worker.rb')
-rw-r--r--app/workers/unmerge_worker.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/unmerge_worker.rb b/app/workers/unmerge_worker.rb
new file mode 100644
index 000000000..dbf7243de
--- /dev/null
+++ b/app/workers/unmerge_worker.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class UnmergeWorker
+  include Sidekiq::Worker
+
+  def perform(from_account_id, into_account_id)
+    FeedManager.instance.unmerge_from_timeline(Account.find(from_account_id), Account.find(into_account_id))
+  end
+end