updated plugin ActivityPub version 9.1.0

This commit is contained in:
2026-07-28 15:03:10 +00:00
committed by Gitium
parent bf428f0e45
commit ff806e1811
217 changed files with 6098 additions and 3025 deletions

View File

@ -162,6 +162,8 @@ class Base_Object extends Generic_Object {
'@id' => 'gts:always',
'@type' => '@id',
),
'toot' => 'http://joinmastodon.org/ns#',
'blurhash' => 'toot:blurhash',
),
);
@ -634,7 +636,7 @@ class Base_Object extends Generic_Object {
*/
public function get( $key ) {
if ( ! $this->has( $key ) ) {
return new \WP_Error( 'invalid_key', __( 'Invalid key', 'activitypub' ), array( 'status' => 404 ) );
return new \WP_Error( 'invalid_key', \__( 'Invalid key', 'activitypub' ), array( 'status' => 404 ) );
}
return parent::get( $key );
@ -650,7 +652,7 @@ class Base_Object extends Generic_Object {
*/
public function set( $key, $value ) {
if ( ! $this->has( $key ) ) {
return new \WP_Error( 'invalid_key', __( 'Invalid key', 'activitypub' ), array( 'status' => 404 ) );
return new \WP_Error( 'invalid_key', \__( 'Invalid key', 'activitypub' ), array( 'status' => 404 ) );
}
return parent::set( $key, $value );
@ -666,7 +668,7 @@ class Base_Object extends Generic_Object {
*/
public function add( $key, $value ) {
if ( ! $this->has( $key ) ) {
return new \WP_Error( 'invalid_key', __( 'Invalid key', 'activitypub' ), array( 'status' => 404 ) );
return new \WP_Error( 'invalid_key', \__( 'Invalid key', 'activitypub' ), array( 'status' => 404 ) );
}
return parent::add( $key, $value );