logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: a594139115b3e9d07ccf70972c5ede101e5a14e4
parent: 95bd85d9e8bd6f47b693a9ccf6733278f992fb6a
Author: ThibG <thib@sitedethib.com>
Date:   Fri,  5 Jan 2018 22:42:50 +0100

When fetching an ActivityPub-enabled status, do not re-request it as text/html (#6196)


Diffstat:

Mapp/services/fetch_atom_service.rb2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/app/services/fetch_atom_service.rb b/app/services/fetch_atom_service.rb @@ -46,6 +46,8 @@ class FetchAtomService < BaseService json = body_to_json(@response.to_s) if supported_context?(json) && json['type'] == 'Person' && json['inbox'].present? [json['id'], { prefetched_body: @response.to_s, id: true }, :activitypub] + elsif supported_context?(json) && json['type'] == 'Note' + [json['id'], { prefetched_body: @response.to_s, id: true }, :activitypub] else @unsupported_activity = true nil