about summary refs log tree commit diff
path: root/app/workers/activitypub
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-05 15:21:14 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-05 15:21:14 +0100
commitdf5924a1db08f362fcc8cf873ffaed72a2ce9f19 (patch)
treed6da741af5fc867fe1a7eb656962eb039beff0b7 /app/workers/activitypub
parentd785497ba5ed44e794dd67660b8779380f81ef42 (diff)
Do not error out on unsalvageable errors in FetchRepliesService (#10175)
* Do not error out on unsalvageable errors in FetchRepliesService

Fixes #10152

* Fix FetchRepliesWorker erroring out on deleted statuses
Diffstat (limited to 'app/workers/activitypub')
-rw-r--r--app/workers/activitypub/fetch_replies_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/activitypub/fetch_replies_worker.rb b/app/workers/activitypub/fetch_replies_worker.rb
index bf466db54..54d98f228 100644
--- a/app/workers/activitypub/fetch_replies_worker.rb
+++ b/app/workers/activitypub/fetch_replies_worker.rb
@@ -8,5 +8,7 @@ class ActivityPub::FetchRepliesWorker
 
   def perform(parent_status_id, replies_uri)
     ActivityPub::FetchRepliesService.new.call(Status.find(parent_status_id), replies_uri)
+  rescue ActiveRecord::RecordNotFound
+    true
   end
 end