]> cat aescling's git repositories - mastodon.git/commitdiff
When fetching an ActivityPub-enabled status, do not re-request it as text/html (...
authorThibG <thib@sitedethib.com>
Fri, 5 Jan 2018 21:42:50 +0000 (22:42 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 5 Jan 2018 21:42:50 +0000 (22:42 +0100)
app/services/fetch_atom_service.rb

index c01e8d071e95e1d1d8dd1b3ca203c05a8026cb6b..c0785984509466a19d37fb5ce4a5becba91e29fd 100644 (file)
@@ -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