diff options
author | Kim Alvefur <zash@zash.se> | 2010-12-29 19:24:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2010-12-29 19:24:19 +0100 |
commit | c8810bb1b7381178e6e9d08a8388421745bf23b9 (patch) | |
tree | 438cebf85f47cd46bfe5ff9f65fd58bbfed6f9f6 /plugins/mod_pubsub.lua | |
parent | fb331b2a58247901c5eb374ce75c079d4a07c2e6 (diff) | |
download | prosody-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.lua | 3 |
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 |