fix application user

This commit is contained in:
Matthias Pfefferle 2023-12-21 10:10:55 +01:00
parent 6f1a9a1f7f
commit f4cab6647d
2 changed files with 6 additions and 2 deletions

View file

@ -78,4 +78,8 @@ class Application_User extends Blog_User {
public function get_indexable() {
return false;
}
public function get_type() {
return $this->type;
}
}

View file

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