Add Group Identifier to WebFinger endpoint

This commit is contained in:
Matthias Pfefferle 2023-11-27 13:51:30 +01:00
parent e529b19b8b
commit 1f5ef3ea2c

View file

@ -113,6 +113,12 @@ class Webfinger {
), ),
); );
if ( 'Group' === $user->get_type() ) {
$profile['links'][0]['properties'] = array(
'https://www.w3.org/ns/activitystreams#type' => 'Group',
);
}
return $profile; return $profile;
} }
} }