updated plugin ActivityPub version 5.8.0

This commit is contained in:
2025-04-29 21:19:06 +00:00
committed by Gitium
parent 19dfd317cc
commit fdfbf76539
166 changed files with 14119 additions and 7163 deletions
wp-content/plugins/activitypub
activitypub.php
assets
build
includes
activity
class-activity-dispatcher.phpclass-activitypub.phpclass-admin.phpclass-autoloader.phpclass-blocks.phpclass-cli.phpclass-comment.phpclass-debug.phpclass-dispatcher.phpclass-embed.phpclass-handler.phpclass-hashtag.phpclass-health-check.phpclass-http.phpclass-link.phpclass-mailer.phpclass-mention.phpclass-migration.phpclass-move.phpclass-notification.phpclass-options.phpclass-query.phpclass-sanitize.phpclass-scheduler.phpclass-shortcodes.phpclass-signature.phpclass-webfinger.php
collection
compat.phpconstants.phpdebug.phpfunctions.php
handler
help.php
model
rest
scheduler
table
transformer
integration
readme.txt
templates

@ -8,7 +8,7 @@
namespace Activitypub\Integration;
use Activitypub\Model\Blog;
use Activitypub\Collection\Users;
use Activitypub\Collection\Actors;
use function Activitypub\is_single_user;
use function Activitypub\is_user_type_disabled;
@ -72,13 +72,13 @@ class Opengraph {
$user_id = \get_post_field( 'post_author', \get_queried_object_id() );
} elseif ( ! is_user_type_disabled( 'blog' ) ) {
// Use the Blog-User for any other page, if the Blog-User is not disabled.
$user_id = Users::BLOG_USER_ID;
$user_id = Actors::BLOG_USER_ID;
} else {
// Do not add any metadata otherwise.
return $metadata;
}
$user = Users::get_by_id( $user_id );
$user = Actors::get_by_id( $user_id );
if ( ! $user || \is_wp_error( $user ) ) {
return $metadata;