Add nodeinfo metadata (#618)
* add nodeinfo metadata nodeName, nodeDescription and nodeIcon * Fix CS: double space typo
This commit is contained in:
parent
5ce8f28852
commit
45e6ace890
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue