updated plugin ActivityPub version 0.13.2

This commit is contained in:
2021-12-20 13:41:52 +00:00
committed by Gitium
parent ca0d11e8cb
commit a3fd251a0c
5 changed files with 88 additions and 11 deletions

View File

@ -43,7 +43,7 @@ $json->publicKey = array(
$json->tag = array();
$json->attachment = array();
$json->attachment[] = array(
$json->attachment['blog_url'] = array(
'type' => 'PropertyValue',
'name' => \__( 'Blog', 'activitypub' ),
'value' => \html_entity_decode(
@ -53,7 +53,7 @@ $json->attachment[] = array(
),
);
$json->attachment[] = array(
$json->attachment['profile_url'] = array(
'type' => 'PropertyValue',
'name' => \__( 'Profile', 'activitypub' ),
'value' => \html_entity_decode(
@ -64,7 +64,7 @@ $json->attachment[] = array(
);
if ( \get_the_author_meta( 'user_url', $author_id ) ) {
$json->attachment[] = array(
$json->attachment['user_url'] = array(
'type' => 'PropertyValue',
'name' => \__( 'Website', 'activitypub' ),
'value' => \html_entity_decode(
@ -84,6 +84,9 @@ $json->endpoints = array(
// filter output
$json = \apply_filters( 'activitypub_json_author_array', $json, $author_id );
// migrate to ActivityPub standard
$json->attachment = array_values( $json->attachment );
/*
* Action triggerd prior to the ActivityPub profile being created and sent to the client
*/