From 33b28b1635dce9ea6fd4632cdced2473e356fb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sun, 24 Dec 2023 11:54:19 +0100 Subject: [PATCH] todo: show application actor table in admin menu for development --- includes/class-activitypub.php | 12 ++++++------ includes/table/class-followers.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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(); }