diff --git a/feed-parsers/class-feed-parser-activitypub.php b/feed-parsers/class-feed-parser-activitypub.php index 28ae2000..7bbbcfb2 100644 --- a/feed-parsers/class-feed-parser-activitypub.php +++ b/feed-parsers/class-feed-parser-activitypub.php @@ -689,7 +689,7 @@ private function disable_polling( User_Feed $user_feed ) { public function get_activitypub_actor( $user_id ) { if ( null === $user_id ) { $user_id = Friends::get_main_friend_user_id(); - if ( class_exists( '\ActivityPub\Collection\Followers' ) ) { + if ( \defined( 'ACTIVITYPUB_ACTOR_MODE' ) ) { $activitypub_actor_mode = \get_option( 'activitypub_actor_mode', ACTIVITYPUB_ACTOR_MODE ); if ( ACTIVITYPUB_BLOG_MODE === $activitypub_actor_mode ) { $user_id = \Activitypub\Collection\Actors::BLOG_USER_ID;