about summary refs log tree commit diff
path: root/app/services/fetch_remote_status_service.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-09 22:10:20 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-10 02:36:38 -0600
commit0512709a77977ea0ffc759d0f9411757c09404a5 (patch)
tree949ec4291b38f099a21a1bc92c4aeafeb2ce3e89 /app/services/fetch_remote_status_service.rb
parent7fe078cf50aa92406dd96b452a240a8011f3601c (diff)
set `resource_options` to empty hash if `nil`
Diffstat (limited to 'app/services/fetch_remote_status_service.rb')
-rw-r--r--app/services/fetch_remote_status_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/fetch_remote_status_service.rb b/app/services/fetch_remote_status_service.rb
index 4fde2b395..e8f9a671b 100644
--- a/app/services/fetch_remote_status_service.rb
+++ b/app/services/fetch_remote_status_service.rb
@@ -4,6 +4,7 @@ class FetchRemoteStatusService < BaseService
   def call(url, prefetched_body = nil, announced_by: nil, requested: false)
     if prefetched_body.nil?
       resource_url, resource_options = FetchAtomService.new.call(url)
+      resource_options = {} if resource_options.nil?
     else
       resource_url     = url
       resource_options = { prefetched_body: prefetched_body }