tell other ap software what content type they should expect source text to be

staging
multiple creatures 2019-05-18 12:49:48 -05:00
parent d70e5afb6e
commit 5c9aed40f6
1 changed files with 1 additions and 1 deletions

View File

@ -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