소스 검색

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

불러오는 중...
취소
저장