From 1f5ef3ea2c7102807459178f53aeded66a918180 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 27 Nov 2023 13:51:30 +0100 Subject: [PATCH] Add Group Identifier to WebFinger endpoint --- includes/rest/class-webfinger.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/rest/class-webfinger.php b/includes/rest/class-webfinger.php index f69593f..34ae392 100644 --- a/includes/rest/class-webfinger.php +++ b/includes/rest/class-webfinger.php @@ -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; } }