2024-05-09 15:27:03 +00:00
|
|
|
<?php
|
2024-07-19 19:46:16 +00:00
|
|
|
$user = new \Activitypub\Model\Blog();
|
2024-05-09 15:27:03 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Action triggerd prior to the ActivityPub profile being created and sent to the client
|
|
|
|
*/
|
|
|
|
\do_action( 'activitypub_json_author_pre', $user->get__id() );
|
|
|
|
|
|
|
|
\header( 'Content-Type: application/activity+json' );
|
|
|
|
echo $user->to_json(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Action triggerd after the ActivityPub profile has been created and sent to the client
|
|
|
|
*/
|
|
|
|
\do_action( 'activitypub_json_author_post', $user->get__id() );
|