From: Takeshi Umeda Date: Wed, 18 Dec 2019 15:54:03 +0000 (+0900) Subject: Fix an error when ActivityPub::FetchRemoteStatusService url is called with nil (... X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a391eaf4d81d5b7a2e5d7e2106f3e119867e1a9b;p=mastodon.git Fix an error when ActivityPub::FetchRemoteStatusService url is called with nil (#12652) --- diff --git a/app/services/fetch_remote_status_service.rb b/app/services/fetch_remote_status_service.rb index 21d277aff..eafde4d4a 100644 --- a/app/services/fetch_remote_status_service.rb +++ b/app/services/fetch_remote_status_service.rb @@ -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