Add nodeinfo metadata (#618)

* add nodeinfo metadata
nodeName, nodeDescription and nodeIcon

* Fix CS: double space typo
This commit is contained in:
André Menrath 2023-12-21 16:05:32 +01:00 committed by GitHub
parent 5ce8f28852
commit 45e6ace890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,12 @@ class Nodeinfo {
'outbound' => array(),
);
$nodeinfo['metadata'] = array(
'nodeName' => \get_bloginfo( 'name' ),
'nodeDescription' => \get_bloginfo( 'description' ),
'nodeIcon' => \get_site_icon_url(),
);
return new WP_REST_Response( $nodeinfo, 200 );
}