util.pubsub: Return correct node in get_subscriptions()
authorKim Alvefur <zash@zash.se>
Wed, 22 Dec 2010 16:42:35 +0000 (17:42 +0100)
committerKim Alvefur <zash@zash.se>
Wed, 22 Dec 2010 16:42:35 +0000 (17:42 +0100)
util/pubsub.lua

index f12dad077c46a7c01d4b4c2554da6de82c199543..3beafab52c423f778af7e3d2729867b238834f9c 100644 (file)
@@ -304,7 +304,7 @@ function service:get_subscriptions(node, actor, jid)
                        if node then -- Return only subscriptions to this node
                                if subscribed_nodes[node] then
                                        ret[#ret+1] = {
-                                               node = node;
+                                               node = subscribed_node;
                                                jid = jid;
                                                subscription = node_obj.subscribers[jid];
                                        };