aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2010-12-22 17:42:35 +0100
committerKim Alvefur <zash@zash.se>2010-12-22 17:42:35 +0100
commit79f8d774812bc98bd432e5341814446100e24cfe (patch)
tree8a9a7badd54d3e68ff4773df3a34db676ff8cacf /util
parent19f1881207ed14ad13c97d28e20b665d3c4ec09e (diff)
downloadprosody-79f8d774812bc98bd432e5341814446100e24cfe.tar.gz
prosody-79f8d774812bc98bd432e5341814446100e24cfe.zip
util.pubsub: Return correct node in get_subscriptions()
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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];
};