Some corrections in the addon names

This commit is contained in:
Michael Vogel 2015-08-11 00:37:27 +02:00
parent e60456fb66
commit 986eee48ac

View file

@ -50,10 +50,11 @@ function nodeinfo_init(&$a){
$nodeinfo["protocols"]["outbound"][] = "gnusocial"; $nodeinfo["protocols"]["outbound"][] = "gnusocial";
} }
if ($smtp) { //if ($smtp) {
$nodeinfo["protocols"]["inbound"][] = "smtp"; // $nodeinfo["protocols"]["inbound"][] = "smtp";
$nodeinfo["protocols"]["outbound"][] = "smtp"; // $nodeinfo["protocols"]["outbound"][] = "smtp";
} //}
$nodeinfo["services"] = array(); $nodeinfo["services"] = array();
@ -63,23 +64,27 @@ function nodeinfo_init(&$a){
if (nodeinfo_plugin_enabled("blogger")) if (nodeinfo_plugin_enabled("blogger"))
$nodeinfo["services"][] = "blogger"; $nodeinfo["services"][] = "blogger";
if (get_config("system","diaspora_enabled")) //if (get_config("system","diaspora_enabled"))
$nodeinfo["services"][] = "diaspora"; // $nodeinfo["services"][] = "diaspora";
if (nodeinfo_plugin_enabled("dreamwidth")) if (nodeinfo_plugin_enabled("dwpost"))
$nodeinfo["services"][] = "dreamwidth"; $nodeinfo["services"][] = "dreamwidth";
if (nodeinfo_plugin_enabled("fbpost") OR nodeinfo_plugin_enabled("buffer")) if (nodeinfo_plugin_enabled("fbpost") OR nodeinfo_plugin_enabled("buffer"))
$nodeinfo["services"][] = "facebook"; $nodeinfo["services"][] = "facebook";
$nodeinfo["services"][] = "friendica"; //$nodeinfo["services"][] = "friendica";
if (nodeinfo_plugin_enabled("statusnet") OR !get_config("system","ostatus_disabled")) //if (nodeinfo_plugin_enabled("statusnet") OR !get_config("system","ostatus_disabled"))
if (nodeinfo_plugin_enabled("statusnet"))
$nodeinfo["services"][] = "gnusocial"; $nodeinfo["services"][] = "gnusocial";
if (nodeinfo_plugin_enabled("fpluspost") OR nodeinfo_plugin_enabled("buffer")) if (nodeinfo_plugin_enabled("gpluspost") OR nodeinfo_plugin_enabled("buffer"))
$nodeinfo["services"][] = "google"; $nodeinfo["services"][] = "google";
if (nodeinfo_plugin_enabled("ijpost"))
$nodeinfo["services"][] = "insanejournal";
if (nodeinfo_plugin_enabled("libertree")) if (nodeinfo_plugin_enabled("libertree"))
$nodeinfo["services"][] = "libertree"; $nodeinfo["services"][] = "libertree";
@ -89,9 +94,17 @@ function nodeinfo_init(&$a){
if (nodeinfo_plugin_enabled("ljpost")) if (nodeinfo_plugin_enabled("ljpost"))
$nodeinfo["services"][] = "livejournal"; $nodeinfo["services"][] = "livejournal";
if (nodeinfo_plugin_enabled("buffer"))
$nodeinfo["services"][] = "pinterest";
if (nodeinfo_plugin_enabled("posterous"))
$nodeinfo["services"][] = "posterous";
if (nodeinfo_plugin_enabled("pumpio")) if (nodeinfo_plugin_enabled("pumpio"))
$nodeinfo["services"][] = "pumpio"; $nodeinfo["services"][] = "pumpio";
// redmatrix
if ($smtp) if ($smtp)
$nodeinfo["services"][] = "smtp"; $nodeinfo["services"][] = "smtp";
@ -101,8 +114,8 @@ function nodeinfo_init(&$a){
if (nodeinfo_plugin_enabled("twitter")) if (nodeinfo_plugin_enabled("twitter"))
$nodeinfo["services"][] = "twitter"; $nodeinfo["services"][] = "twitter";
if (nodeinfo_plugin_enabled("wordpress")) if (nodeinfo_plugin_enabled("wppost"))
$nodeinfo["services"][] = "wppost"; $nodeinfo["services"][] = "wordpress";
$nodeinfo["openRegistrations"] = ($a->config['register_policy'] != 0); $nodeinfo["openRegistrations"] = ($a->config['register_policy'] != 0);