'https://www.w3.org/ns/activitystreams', 'id' => Router::url('note_view', ['id' => $note->getId()], Router::ABSOLUTE_URL), 'published' => $note->getCreated()->format(DateTimeInterface::RFC3339), 'attributedTo' => Router::url('actor_view_id', ['id' => $note->getActorId()], Router::ABSOLUTE_URL), //'to' => $to, //'cc' => $cc, 'content' => json_encode($note->getRendered()), //'tag' => $tags ]; return Type::create(type: 'Note', attributes: $attr); } }