Skip to content

Commit

Permalink
Use constant to check for ActivityPub
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Dec 12, 2024
1 parent e1b2ba6 commit c8ce72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feed-parsers/class-feed-parser-activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8ce72a

Please sign in to comment.