From 79f8d774812bc98bd432e5341814446100e24cfe Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 22 Dec 2010 17:42:35 +0100 Subject: util.pubsub: Return correct node in get_subscriptions() --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/pubsub.lua b/util/pubsub.lua index f12dad07..3beafab5 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -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]; }; -- cgit v1.2.3