aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-22 16:45:32 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-22 16:45:32 +0000
commit45dee16625588cdc7dcf285dc51f209d6897c0cb (patch)
tree8dfcc1d70903993684061e38114baaf2a1692719 /util
parent1d8be7498d04ac65eafbb81c6729634920b3d571 (diff)
downloadprosody-45dee16625588cdc7dcf285dc51f209d6897c0cb.tar.gz
prosody-45dee16625588cdc7dcf285dc51f209d6897c0cb.zip
util.pubsub: Use correct node name when returning a list of multiple nodes in a subscriptions response
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 e9cec9ec..f12dad07 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -313,7 +313,7 @@ function service:get_subscriptions(node, actor, jid)
local nodes = self.nodes;
for subscribed_node in pairs(subscribed_nodes) do
ret[#ret+1] = {
- node = node;
+ node = subscribed_node;
jid = jid;
subscription = nodes[subscribed_node].subscribers[jid];
};