From e8e93b82f11d93fef7ecc02881c449c2e46a5d10 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 14 May 2025 15:43:34 +0200 Subject: [PATCH] Fix `NoMethodError` in `ActivityPub::FetchAllRepliesWorker` (#34682) --- app/workers/activitypub/fetch_all_replies_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/activitypub/fetch_all_replies_worker.rb b/app/workers/activitypub/fetch_all_replies_worker.rb index 63e1f9618f..d4ac3e85b8 100644 --- a/app/workers/activitypub/fetch_all_replies_worker.rb +++ b/app/workers/activitypub/fetch_all_replies_worker.rb @@ -78,7 +78,7 @@ class ActivityPub::FetchAllRepliesWorker # @param root_status_uri [String] def get_root_replies(root_status_uri, options = {}) root_status_body = fetch_resource(root_status_uri, true) - raise RuntimeError("FetchAllRepliesWorker - #{@root_status.uri}: Root status could not be fetched") if root_status_body.nil? + return if root_status_body.nil? FetchReplyWorker.perform_async(root_status_uri, { **options, prefetched_body: root_status_body })