Make webfinger links an array

This commit is contained in:
Jeremy Dormitzer 2018-10-09 10:08:14 -04:00
parent 1b30055287
commit a12ea89f92

View File

@ -62,11 +62,11 @@ function get_webfinger_json( $resource, $actor_slug ) {
}
$json = array(
'subject' => $resource,
'links' => array(
'links' => array( array(
'rel' => 'self',
'type' => 'application/activity+json',
'href' => $actor['id'],
),
) ),
);
header( 'Content-Type: application/jrd+json', true );
echo wp_json_encode( $json );