[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
1 changed files with 2 additions and 0 deletions

View File

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