Skip to content
Snippets Groups Projects
Commit a391eaf4 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by Eugen Rochko
Browse files

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

parent 45f89684
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment