check for option field

This commit is contained in:
Matthias Pfefferle 2023-06-28 16:42:33 +02:00
parent 913c9aeac4
commit a706bef130

View file

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