about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-01-05 22:42:50 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-01-05 22:42:50 +0100
commita594139115b3e9d07ccf70972c5ede101e5a14e4 (patch)
tree2cd750b1bf7b357241f407b63b16d34c80a1373e /app/services
parent95bd85d9e8bd6f47b693a9ccf6733278f992fb6a (diff)
When fetching an ActivityPub-enabled status, do not re-request it as text/html (#6196)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fetch_atom_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/fetch_atom_service.rb b/app/services/fetch_atom_service.rb
index c01e8d071..c07859845 100644
--- 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