2021-07-25 23:24:56 +00:00
|
|
|
<?php
|
2024-10-09 12:44:17 +00:00
|
|
|
/**
|
|
|
|
* ActivityPub Blog JSON template.
|
|
|
|
*
|
|
|
|
* @package Activitypub
|
|
|
|
*/
|
|
|
|
|
2024-06-27 12:10:38 +00:00
|
|
|
$user = new \Activitypub\Model\Blog();
|
2021-07-25 23:24:56 +00:00
|
|
|
|
2024-10-09 12:44:17 +00:00
|
|
|
/**
|
|
|
|
* Action triggered prior to the ActivityPub profile being created and sent to the client
|
2021-07-25 23:24:56 +00:00
|
|
|
*/
|
2023-10-22 22:20:53 +00:00
|
|
|
\do_action( 'activitypub_json_author_pre', $user->get__id() );
|
2021-07-25 23:24:56 +00:00
|
|
|
|
|
|
|
\header( 'Content-Type: application/activity+json' );
|
2024-02-08 12:31:25 +00:00
|
|
|
echo $user->to_json(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
2021-07-25 23:24:56 +00:00
|
|
|
|
2024-10-09 12:44:17 +00:00
|
|
|
/**
|
|
|
|
* Action triggered after the ActivityPub profile has been created and sent to the client
|
2021-07-25 23:24:56 +00:00
|
|
|
*/
|
2023-10-22 22:20:53 +00:00
|
|
|
\do_action( 'activitypub_json_author_post', $user->get__id() );
|