Browse Source

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

master
Takeshi Umeda 4 years ago
committed by Eugen Rochko
parent
commit
a391eaf4d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/fetch_remote_status_service.rb

+ 1
- 1
app/services/fetch_remote_status_service.rb 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

Loading…
Cancel
Save