]> cat aescling's git repositories - mastodon.git/commitdiff
Fix thread resolve worker retrying when status no longer exists (#16109)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 26 Apr 2021 16:56:45 +0000 (18:56 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 16:56:45 +0000 (18:56 +0200)
app/workers/thread_resolve_worker.rb

index 8bba9ca75e668fa969fb4aed127215c5a7244224..1b77dfdd932cba487a23da7c3123bb7e33f31df5 100644 (file)
@@ -14,5 +14,7 @@ class ThreadResolveWorker
 
     child_status.thread = parent_status
     child_status.save!
+  rescue ActiveRecord::RecordNotFound
+    true
   end
 end