updated plugin ActivityPub version 2.2.0

This commit is contained in:
2024-03-28 09:39:50 +00:00
committed by Gitium
parent fd53533f59
commit 00c5db12cc
50 changed files with 1726 additions and 374 deletions

View File

@ -59,7 +59,7 @@ class Outbox {
return $user;
}
$post_types = \get_option( 'activitypub_support_post_types', array( 'post', 'page' ) );
$post_types = \get_option( 'activitypub_support_post_types', array( 'post' ) );
$page = $request->get_param( 'page', 1 );
@ -108,10 +108,8 @@ class Outbox {
$post = Post::transform( $post )->to_object();
$activity = new Activity();
$activity->set_type( 'Create' );
$activity->set_context( null );
$activity->set_object( $post );
$json->orderedItems[] = $activity->to_array(); // phpcs:ignore
$json->orderedItems[] = $activity->to_array( false ); // phpcs:ignore
}
}