about summary refs log tree commit diff
path: root/app/services/fetch_atom_service.rb
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-01-05 17:31:56 -0600
committerDavid Yip <yipdw@member.fsf.org>2018-01-05 17:31:56 -0600
commit03aeab857f0972e74910307f1a5954353eb70a28 (patch)
treeb0b6243ee40684a949cff440bb56dcad7eec8674 /app/services/fetch_atom_service.rb
parentf441770e50621ac59a7b022ee2127964935b2b8d (diff)
parentf6adb409fd8f4bf42c1da54cc1e7e42886612c14 (diff)
Merge remote-tracking branch 'personal/merge/tootsuite/master' into gs-master
Diffstat (limited to 'app/services/fetch_atom_service.rb')
-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