aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2010-12-29 19:24:19 +0100
committerKim Alvefur <zash@zash.se>2010-12-29 19:24:19 +0100
commitc8810bb1b7381178e6e9d08a8388421745bf23b9 (patch)
tree438cebf85f47cd46bfe5ff9f65fd58bbfed6f9f6 /plugins/mod_pubsub.lua
parentfb331b2a58247901c5eb374ce75c079d4a07c2e6 (diff)
downloadprosody-c8810bb1b7381178e6e9d08a8388421745bf23b9.tar.gz
prosody-c8810bb1b7381178e6e9d08a8388421745bf23b9.zip
mod_pubsub: Correctly wrap the list of subscriptions in a pubsub element
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index 90c19815..80300df2 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -74,7 +74,8 @@ function handlers.get_subscriptions(origin, stanza, subscriptions)
return origin.send(pubsub_error_reply(stanza, ret));
end
local reply = st.reply(stanza)
- :tag("subscriptions", { xmlns = xmlns_pubsub });
+ :tag("pubsub", { xmlns = xmlns_pubsub })
+ :tag("subscriptions");
for _, sub in ipairs(ret) do
reply:tag("subscription", { node = sub.node, jid = sub.jid, subscription = 'subscribed' }):up();
end