forked from GNUsocial/gnu-social
[PLUGIN][ActivityPub][Model][Note] Federate content out
This commit is contained in:
parent
8f60fc4685
commit
0a741903a1
@ -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())),
|
||||||
|
Loading…
Reference in New Issue
Block a user