tell other ap software what content type they should expect source text to be
parent
d70e5afb6e
commit
5c9aed40f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue