Commit a391eaf4 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by Eugen Rochko

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

parent 45f89684
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment