[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),
|
||||
'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())),
|
||||
|
Loading…
Reference in New Issue
Block a user