Fix regression in FetchRemoteResourceService (#5217)
* Fix regression in FetchRemoteResourceService * Update specs to match interface changes made in #5114
This commit is contained in:
		@@ -45,7 +45,7 @@ class FetchAtomService < BaseService
 | 
			
		||||
    elsif ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].include?(@response.mime_type)
 | 
			
		||||
      json = body_to_json(@response.to_s)
 | 
			
		||||
      if supported_context?(json) && json['type'] == 'Person' && json['inbox'].present?
 | 
			
		||||
        [json['id'], { id: true }, :activitypub]
 | 
			
		||||
        [json['id'], { prefetched_body: @response.to_s, id: true }, :activitypub]
 | 
			
		||||
      else
 | 
			
		||||
        @unsupported_activity = true
 | 
			
		||||
        nil
 | 
			
		||||
 
 | 
			
		||||
@@ -33,7 +33,7 @@ class FetchRemoteResourceService < BaseService
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def body
 | 
			
		||||
    fetched_atom_feed.second
 | 
			
		||||
    fetched_atom_feed.second[:prefetched_body]
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def protocol
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user