From: Eugen Rochko Date: Mon, 26 Apr 2021 16:56:45 +0000 (+0200) Subject: Fix thread resolve worker retrying when status no longer exists (#16109) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=f78cbc0c32d5fc648c92b5e1de02105d6a8594c0;p=mastodon.git Fix thread resolve worker retrying when status no longer exists (#16109) --- diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb index 8bba9ca75..1b77dfdd9 100644 --- a/app/workers/thread_resolve_worker.rb +++ b/app/workers/thread_resolve_worker.rb @@ -14,5 +14,7 @@ class ThreadResolveWorker child_status.thread = parent_status child_status.save! + rescue ActiveRecord::RecordNotFound + true end end