about summary refs log tree commit diff
path: root/app/serializers/activitypub
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-18 12:49:48 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:23 -0500
commit5c9aed40f6c046629b548df402ca2f13ba36efe0 (patch)
tree2a2337103b8547d2badb960041ca8709ea2db3d4 /app/serializers/activitypub
parentd70e5afb6e4bd72dc737e5d0cecd54ce66f5d70f (diff)
tell other ap software what content type they should expect source text to be
Diffstat (limited to 'app/serializers/activitypub')
-rw-r--r--app/serializers/activitypub/note_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb
index da99b9606..460a7ba7e 100644
--- a/app/serializers/activitypub/note_serializer.rb
+++ b/app/serializers/activitypub/note_serializer.rb
@@ -40,7 +40,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
   end
 
   def source
-    { 'source' => object.proper.text, 'mediaType' => 'text/plain' }
+    { 'source' => object.proper.text, 'mediaType' => object.proper.content_type || 'text/plain' }
   end
 
   def content_map