]> git.mxchange.org Git - friendica.git/commitdiff
Moved the rss/atom part to the protocols.
authorMichael Vogel <icarus@dabo.de>
Mon, 24 Aug 2015 06:15:34 +0000 (08:15 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 24 Aug 2015 06:15:34 +0000 (08:15 +0200)
mod/nodeinfo.php

index d2ef9179080ba835bbef6d526ffc468c514b26ca..9b529ac2dd4bb661787e9c7f80b456513538e945 100644 (file)
@@ -126,8 +126,12 @@ function nodeinfo_init(&$a){
        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"];
-       $nodeinfo["metadata"]["services"]["inbound"][] = "feed";
 
        if (nodeinfo_plugin_enabled("twitter"))
                $nodeinfo["metadata"]["services"]["inbound"][] = "twitter";