]> git.mxchange.org Git - friendica.git/commitdiff
The links for nodeinfo in "well-known" need to be an array of objects.
authorMichael Vogel <icarus@dabo.de>
Sat, 5 Sep 2015 02:33:18 +0000 (04:33 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 5 Sep 2015 02:33:18 +0000 (04:33 +0200)
mod/nodeinfo.php

index eced2e1682a830616410c0fc4459191456e6e6ba..f013c9084ff9c813ae18a91d0edf239451f890fd 100644 (file)
@@ -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);