1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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

This commit is contained in:
Takeshi Umeda 2019-12-19 00:54:03 +09:00 committed by Eugen Rochko
parent 45f8968404
commit a391eaf4d8

View file

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