From e2ad08b61b80f3888e99d1dff214a464ebd2cc20 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 31 May 2023 10:31:14 +0200 Subject: [PATCH] use correct blog-user-id --- includes/table/class-followers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/table/class-followers.php b/includes/table/class-followers.php index 5f1c199..3a107c7 100644 --- a/includes/table/class-followers.php +++ b/includes/table/class-followers.php @@ -2,6 +2,7 @@ namespace Activitypub\Table; use WP_List_Table; +use Activitypub\User_Factory; use Activitypub\Collection\Followers as FollowerCollection; if ( ! \class_exists( '\WP_List_Table' ) ) { @@ -13,7 +14,7 @@ class Followers extends WP_List_Table { public function __construct() { if ( get_current_screen()->id === 'settings_page_activitypub' ) { - $this->user_id = -1; + $this->user_id = User_Factory::BLOG_USER_ID; } else { $this->user_id = \get_current_user_id(); }