From: Michael Vogel Date: Sat, 5 Sep 2015 02:33:18 +0000 (+0200) Subject: The links for nodeinfo in "well-known" need to be an array of objects. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30e7ce2e2a81bcd3ec7d284c8e0d2d5792653741;p=friendica.git The links for nodeinfo in "well-known" need to be an array of objects. --- 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);