]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Don't show "appnet" in "inbound" when only "buffer" is enabled.
authorMichael Vogel <icarus@dabo.de>
Mon, 24 Aug 2015 06:18:17 +0000 (08:18 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 24 Aug 2015 06:18:17 +0000 (08:18 +0200)
mod/nodeinfo.php

index 9b529ac2dd4bb661787e9c7f80b456513538e945..eced2e1682a830616410c0fc4459191456e6e6ba 100644 (file)
@@ -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"))