Bugfix: Don't show "appnet" in "inbound" when only "buffer" is enabled.

This commit is contained in:
Michael Vogel 2015-08-24 08:18:17 +02:00
parent 3e08024839
commit cf5fce855e
1 changed files with 4 additions and 3 deletions

View File

@ -67,10 +67,11 @@ function nodeinfo_init(&$a){
$nodeinfo["metadata"] = array("nodeName" => $a->config["sitename"]); $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"; $nodeinfo["services"]["inbound"][] = "appnet";
if (nodeinfo_plugin_enabled("appnet") OR nodeinfo_plugin_enabled("buffer"))
$nodeinfo["services"]["outbound"][] = "appnet"; $nodeinfo["services"]["outbound"][] = "appnet";
}
if (nodeinfo_plugin_enabled("blogger")) if (nodeinfo_plugin_enabled("blogger"))
$nodeinfo["services"]["outbound"][] = "blogger"; $nodeinfo["services"]["outbound"][] = "blogger";
@ -120,7 +121,7 @@ function nodeinfo_init(&$a){
if (nodeinfo_plugin_enabled("tumblr")) if (nodeinfo_plugin_enabled("tumblr"))
$nodeinfo["services"]["outbound"][] = "tumblr"; $nodeinfo["services"]["outbound"][] = "tumblr";
if (nodeinfo_plugin_enabled("twitter")) if (nodeinfo_plugin_enabled("twitter") OR nodeinfo_plugin_enabled("buffer"))
$nodeinfo["services"]["outbound"][] = "twitter"; $nodeinfo["services"]["outbound"][] = "twitter";
if (nodeinfo_plugin_enabled("wppost")) if (nodeinfo_plugin_enabled("wppost"))