瀏覽代碼

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

master^2
Takeshi Umeda 4 年之前
committed by Eugen Rochko
父節點
當前提交
a391eaf4d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/services/fetch_remote_status_service.rb

+ 1
- 1
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

Loading…
取消
儲存