diff --git a/includes/server/webfinger.php b/includes/server/webfinger.php index 4023383..dd27250 100644 --- a/includes/server/webfinger.php +++ b/includes/server/webfinger.php @@ -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 );