about summary refs log tree commit diff
path: root/app/workers/unmerge_worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-09-08 03:41:16 +0200
committerGitHub <noreply@github.com>2020-09-08 03:41:16 +0200
commit65760f59df46e388919a9f7ccba1958d967b2695 (patch)
tree50243d7994f006d3bb53ba829460cbc191dbe540 /app/workers/unmerge_worker.rb
parent169f9105ef9b65380ff6af177c11a7b247025684 (diff)
Refactor feed manager (#14761)
Diffstat (limited to 'app/workers/unmerge_worker.rb')
-rw-r--r--app/workers/unmerge_worker.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/unmerge_worker.rb b/app/workers/unmerge_worker.rb
index ea6aacebf..1a23faae5 100644
--- a/app/workers/unmerge_worker.rb
+++ b/app/workers/unmerge_worker.rb
@@ -6,6 +6,8 @@ class UnmergeWorker
   sidekiq_options queue: 'pull'
 
   def perform(from_account_id, into_account_id)
-    FeedManager.instance.unmerge_from_timeline(Account.find(from_account_id), Account.find(into_account_id))
+    FeedManager.instance.unmerge_from_home(Account.find(from_account_id), Account.find(into_account_id))
+  rescue ActiveRecord::RecordNotFound
+    true
   end
 end