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

lolsob-rspec
Takeshi Umeda 2019-12-19 00:54:03 +09:00 committed by Eugen Rochko
parent c9bb21aed0
commit df28debc53
1 changed files with 1 additions and 1 deletions

View File

@ -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