]> git.mxchange.org Git - friendica.git/blobdiff - mod/nodeinfo.php
Merge develop into manage
[friendica.git] / mod / nodeinfo.php
index 9b529ac2dd4bb661787e9c7f80b456513538e945..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);
@@ -67,10 +67,11 @@ function nodeinfo_init(&$a){
 
        $nodeinfo["metadata"] = array("nodeName" => $a->config["sitename"]);
 
-       if (nodeinfo_plugin_enabled("appnet") OR nodeinfo_plugin_enabled("buffer")) {
+       if (nodeinfo_plugin_enabled("appnet"))
                $nodeinfo["services"]["inbound"][] = "appnet";
+
+       if (nodeinfo_plugin_enabled("appnet") OR nodeinfo_plugin_enabled("buffer"))
                $nodeinfo["services"]["outbound"][] = "appnet";
-       }
 
        if (nodeinfo_plugin_enabled("blogger"))
                $nodeinfo["services"]["outbound"][] = "blogger";
@@ -120,7 +121,7 @@ function nodeinfo_init(&$a){
        if (nodeinfo_plugin_enabled("tumblr"))
                $nodeinfo["services"]["outbound"][] = "tumblr";
 
-       if (nodeinfo_plugin_enabled("twitter"))
+       if (nodeinfo_plugin_enabled("twitter") OR nodeinfo_plugin_enabled("buffer"))
                $nodeinfo["services"]["outbound"][] = "twitter";
 
        if (nodeinfo_plugin_enabled("wppost"))