From a706bef1306c6af78d748f5a4c814a2ac350e32a Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 28 Jun 2023 16:42:33 +0200 Subject: [PATCH] check for option field --- includes/class-user-factory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/class-user-factory.php b/includes/class-user-factory.php index 8011445..8cc9f26 100644 --- a/includes/class-user-factory.php +++ b/includes/class-user-factory.php @@ -62,6 +62,10 @@ class User_Factory { return self::get_by_id( self::BLOG_USER_ID ); } + if ( get_option( 'activitypub_blog_user_identifier' ) === $username ) { + return self::get_by_id( self::BLOG_USER_ID ); + } + // check for application user. if ( 'application' === $username ) { return self::get_by_id( self::APPLICATION_USER_ID );