Software /
code /
prosody
Changeset
3988:a3104064e905
mod_pubsub: Correctly wrap the list of subscriptions in a pubsub element
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 29 Dec 2010 19:24:19 +0100 |
parents | 3987:8fbf57722368 |
children | 3989:84792db89336 |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua Wed Dec 29 18:49:59 2010 +0500 +++ b/plugins/mod_pubsub.lua Wed Dec 29 19:24:19 2010 +0100 @@ -74,7 +74,8 @@ 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