mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Fix NoMethodError
in ActivityPub::FetchAllRepliesWorker
(#34682)
This commit is contained in:
parent
55b472b011
commit
3988624a82
|
@ -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 })
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user