Refactor fetching of remote resources (#11251)
This commit is contained in:
parent
d04c584159
commit
5d3feed191
13 changed files with 142 additions and 216 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue