Refactor fetching of remote resources (#11251)

This commit is contained in:
Eugen Rochko
2019-07-10 18:59:28 +02:00
committed by GitHub
parent d04c584159
commit 5d3feed191
13 changed files with 142 additions and 216 deletions

View File

@ -3,7 +3,7 @@
class FetchRemoteAccountService < BaseService
def call(url, prefetched_body = nil, protocol = :ostatus)
if prefetched_body.nil?
resource_url, resource_options, protocol = FetchAtomService.new.call(url)
resource_url, resource_options, protocol = FetchResourceService.new.call(url)
else
resource_url = url
resource_options = { prefetched_body: prefetched_body }