updated plugin ActivityPub
version 5.8.0
This commit is contained in:
wp-content/plugins/activitypub
activitypub.php
assets
build
editor-plugin
follow-me
followers
reactions
remote-reply
reply-intent
reply
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.phpcollection
class-actors.phpclass-extra-fields.phpclass-followers.phpclass-interactions.phpclass-outbox.phpclass-replies.phpclass-users.php
compat.phpconstants.phpdebug.phpfunctions.phphandler
class-announce.phpclass-create.phpclass-delete.phpclass-follow.phpclass-like.phpclass-move.phpclass-undo.phpclass-update.php
help.phpmodel
rest
class-actors-controller.phpclass-actors-inbox-controller.phpclass-actors.phpclass-application-controller.phpclass-collection.phpclass-collections-controller.phpclass-comment.phpclass-comments-controller.phpclass-followers-controller.phpclass-followers.phpclass-following-controller.phpclass-following.phpclass-inbox-controller.phpclass-inbox.phpclass-interaction-controller.phpclass-interaction.phpclass-moderators-controller.phpclass-nodeinfo-controller.phpclass-nodeinfo.phpclass-outbox-controller.phpclass-outbox.phpclass-post.phpclass-replies-controller.phpclass-server.phpclass-url-validator-controller.phpclass-webfinger-controller.phpclass-webfinger.phptrait-collection.php
scheduler
table
transformer
integration
class-akismet.phpclass-enable-mastodon-apps.phpclass-jetpack.phpclass-multisite-language-switcher.phpclass-nodeinfo.phpclass-opengraph.phpclass-seriously-simple-podcasting.phpclass-stream-connector.phpclass-webfinger.phpclass-wpml.phpload.php
readme.txttemplates
@ -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;
|
||||
|
Reference in New Issue
Block a user