Fix NoMethodError in ActivityPub::FetchAllRepliesWorker (#34682)

This commit is contained in:
Claire authored and GitHub committed 2025-05-14 13:43:34 +00:00
1 parent aa04efb92a
commit e8e93b82f1
1 file changed
+1 -1
@@ -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 })