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

@ -65,13 +65,9 @@ $change_sign = $followers_net_change >= 0 ? '+' : '';
// Get actor webfinger for the card header.
$actor = Actors::get_by_id( $user_id );
if ( \is_wp_error( $actor ) ) {
// Fall back to direct model instantiation for blog/application actors.
if ( Actors::BLOG_USER_ID === $user_id ) {
$actor = new \Activitypub\Model\Blog();
} elseif ( Actors::APPLICATION_USER_ID === $user_id ) {
$actor = new \Activitypub\Model\Application();
}
if ( \is_wp_error( $actor ) && Actors::BLOG_USER_ID === $user_id ) {
// Fall back to direct model instantiation for the blog actor.
$actor = new \Activitypub\Model\Blog();
}
$actor_webfinger = ! \is_wp_error( $actor ) ? $actor->get_webfinger() : '';