Software /
code /
prosody
Diff
plugins/mod_pubsub.lua @ 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 |
parent | 3949:fc4ff6db1e57 |
child | 4120:d62a2861f1f9 |
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