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);
$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";
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"))
$nodeinfo["services"]["outbound"][] = "wordpress";
+ $nodeinfo["metadata"]["protocols"] = $nodeinfo["protocols"];
+ $nodeinfo["metadata"]["protocols"]["outbound"][] = "atom1.0";
+ $nodeinfo["metadata"]["protocols"]["inbound"][] = "atom1.0";
+ $nodeinfo["metadata"]["protocols"]["inbound"][] = "rss2.0";
+
$nodeinfo["metadata"]["services"] = $nodeinfo["services"];
if (nodeinfo_plugin_enabled("twitter"))