diff --git a/includes/model/class-application-user.php b/includes/model/class-application-user.php index c9faded..8fb4ee6 100644 --- a/includes/model/class-application-user.php +++ b/includes/model/class-application-user.php @@ -78,4 +78,8 @@ class Application_User extends Blog_User { public function get_indexable() { return false; } + + public function get_type() { + return $this->type; + } } diff --git a/includes/rest/class-webfinger.php b/includes/rest/class-webfinger.php index 765044b..fac408e 100644 --- a/includes/rest/class-webfinger.php +++ b/includes/rest/class-webfinger.php @@ -116,9 +116,9 @@ class Webfinger { ), ); - if ( 'Group' === $user->get_type() ) { + if ( 'Person' !== $user->get_type() ) { $profile['links'][0]['properties'] = array( - 'https://www.w3.org/ns/activitystreams#type' => 'Group', + 'https://www.w3.org/ns/activitystreams#type' => $user->get_type(), ); }