diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2019-12-19 00:54:03 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-12-18 16:54:03 +0100 |
commit | a391eaf4d81d5b7a2e5d7e2106f3e119867e1a9b (patch) | |
tree | 843e29f420fb17014104e5af0b9bc5605f7a9a0f /app/services | |
parent | 45f89684045d4b39ebc9291e0cad3d1f318e5f8c (diff) |
Fix an error when ActivityPub::FetchRemoteStatusService url is called with nil (#12652)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/fetch_remote_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_remote_status_service.rb b/app/services/fetch_remote_status_service.rb index 21d277aff..eafde4d4a 100644 --- a/app/services/fetch_remote_status_service.rb +++ b/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 |