diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-22 16:45:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-22 16:45:32 +0000 |
commit | 45dee16625588cdc7dcf285dc51f209d6897c0cb (patch) | |
tree | 8dfcc1d70903993684061e38114baaf2a1692719 /util/pubsub.lua | |
parent | 1d8be7498d04ac65eafbb81c6729634920b3d571 (diff) | |
download | prosody-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/pubsub.lua')
-rw-r--r-- | util/pubsub.lua | 2 |
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]; }; |