Make webfinger links an array
This commit is contained in:
parent
1b30055287
commit
a12ea89f92
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user