mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix an error when ActivityPub::FetchRemoteStatusService url is called with nil (#12652)
This commit is contained in:
parent
45f8968404
commit
a391eaf4d8
@ -9,6 +9,6 @@ class FetchRemoteStatusService < BaseService
|
|||||||
resource_options = { prefetched_body: prefetched_body }
|
resource_options = { prefetched_body: prefetched_body }
|
||||||
end
|
end
|
||||||
|
|
||||||
ActivityPub::FetchRemoteStatusService.new.call(resource_url, **resource_options)
|
ActivityPub::FetchRemoteStatusService.new.call(resource_url, **resource_options) unless resource_url.nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user