Fix an error when ActivityPub::FetchRemoteStatusService url is called with nil (#12652)

th-downstream
Takeshi Umeda 5 years ago committed by Eugen Rochko
parent c9bb21aed0
commit df28debc53

@ -9,6 +9,6 @@ class FetchRemoteStatusService < BaseService
resource_options = { prefetched_body: prefetched_body }
end
ActivityPub::FetchRemoteStatusService.new.call(resource_url, **resource_options)
ActivityPub::FetchRemoteStatusService.new.call(resource_url, **resource_options) unless resource_url.nil?
end
end

Loading…
Cancel
Save