From 5c9aed40f6c046629b548df402ca2f13ba36efe0 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 18 May 2019 12:49:48 -0500 Subject: [PATCH] tell other ap software what content type they should expect source text to be --- app/serializers/activitypub/note_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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