From 30e7ce2e2a81bcd3ec7d284c8e0d2d5792653741 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 5 Sep 2015 04:33:18 +0200 Subject: [PATCH] The links for nodeinfo in "well-known" need to be an array of objects. --- mod/nodeinfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/nodeinfo.php b/mod/nodeinfo.php index eced2e1682..f013c9084f 100644 --- a/mod/nodeinfo.php +++ b/mod/nodeinfo.php @@ -10,8 +10,8 @@ function nodeinfo_wellknown(&$a) { http_status_exit(404); killme(); } - $nodeinfo = array("links" => array("rel" => "http://nodeinfo.diaspora.software/ns/schema/1.0", - "href" => $a->get_baseurl()."/nodeinfo/1.0")); + $nodeinfo = array("links" => array(array("rel" => "http://nodeinfo.diaspora.software/ns/schema/1.0", + "href" => $a->get_baseurl()."/nodeinfo/1.0"))); header('Content-type: application/json; charset=utf-8'); echo json_encode($nodeinfo, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);