[PLUGIN][ActivityPub][Model][Note] Federate content out

This commit is contained in:
Diogo Peralta Cordeiro 2022-02-16 23:57:24 +00:00
parent 8f60fc4685
commit 0a741903a1
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -337,6 +337,8 @@ class Note extends Model
'published' => $object->getCreated()->format(DateTimeInterface::RFC3339), 'published' => $object->getCreated()->format(DateTimeInterface::RFC3339),
'attributedTo' => $object->getActor()->getUri(Router::ABSOLUTE_URL), 'attributedTo' => $object->getActor()->getUri(Router::ABSOLUTE_URL),
'content' => $object->getRendered(), 'content' => $object->getRendered(),
'mediaType' => 'text/html',
'source' => ['content' => $object->getContent(), 'mediaType' => $object->getContentType()],
'attachment' => [], 'attachment' => [],
'tag' => [], 'tag' => [],
'inReplyTo' => \is_null($object->getReplyTo()) ? null : ActivityPub::getUriByObject(GSNote::getById($object->getReplyTo())), 'inReplyTo' => \is_null($object->getReplyTo()) ? null : ActivityPub::getUriByObject(GSNote::getById($object->getReplyTo())),