From a12ea89f921e65871f13db535e0937a1b7507493 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 9 Oct 2018 10:08:14 -0400 Subject: [PATCH] Make webfinger links an array --- includes/server/webfinger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );