use correct blog-user-id

This commit is contained in:
Matthias Pfefferle 2023-05-31 10:31:14 +02:00
parent 0f72f94406
commit e2ad08b61b

View file

@ -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();
}