diff --git a/includes/class-activitypub.php b/includes/class-activitypub.php index 16d417c..8b2a405 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -389,7 +389,7 @@ class Activitypub { * @return void */ private static function register_post_types() { - \register_post_type( + register_post_type( Followers::POST_TYPE, array( 'labels' => array( @@ -406,7 +406,7 @@ class Activitypub { ) ); - \register_post_meta( + register_post_meta( Followers::POST_TYPE, 'activitypub_inbox', array( @@ -416,7 +416,7 @@ class Activitypub { ) ); - \register_post_meta( + register_post_meta( Followers::POST_TYPE, 'activitypub_errors', array( @@ -432,7 +432,7 @@ class Activitypub { ) ); - \register_post_meta( + register_post_meta( Followers::POST_TYPE, 'activitypub_user_id', array( @@ -444,7 +444,7 @@ class Activitypub { ) ); - \register_post_meta( + register_post_meta( Followers::POST_TYPE, 'activitypub_actor_json', array( @@ -456,7 +456,7 @@ class Activitypub { ) ); - \do_action( 'activitypub_after_register_post_type' ); + do_action( 'activitypub_after_register_post_type' ); } /** diff --git a/includes/table/class-followers.php b/includes/table/class-followers.php index df9747b..76b1f83 100644 --- a/includes/table/class-followers.php +++ b/includes/table/class-followers.php @@ -16,7 +16,7 @@ class Followers extends WP_List_Table { public function __construct() { if ( get_current_screen()->id === 'settings_page_activitypub' ) { - $this->user_id = Users::BLOG_USER_ID; + $this->user_id = Users::APPLICATION_USER_ID; } else { $this->user_id = \get_current_user_id(); }