util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas)
authorKim Alvefur <zash@zash.se>
Sun, 26 May 2013 14:01:09 +0000 (16:01 +0200)
committerKim Alvefur <zash@zash.se>
Sun, 26 May 2013 14:01:09 +0000 (16:01 +0200)
util/pubsub.lua

index e7fc86b10c23d706b1c6792bcb22eabd74ab3032..1ecbdfa81df130b0177ee0fb9b273f82b3884bb8 100644 (file)
@@ -350,7 +350,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 = subscribed_nodes[node];
+                                               node = node;
                                                jid = jid;
                                                subscription = node_obj.subscribers[jid];
                                        };