check for option field
This commit is contained in:
parent
913c9aeac4
commit
a706bef130
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ class User_Factory {
|
||||||
return self::get_by_id( self::BLOG_USER_ID );
|
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.
|
// check for application user.
|
||||||
if ( 'application' === $username ) {
|
if ( 'application' === $username ) {
|
||||||
return self::get_by_id( self::APPLICATION_USER_ID );
|
return self::get_by_id( self::APPLICATION_USER_ID );
|
||||||
|
|
Loading…
Reference in a new issue