Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 8216:d80233ca006d
mod_pubsub: Pass xmlns correctly
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 26 Apr 2017 12:05:06 +0200 |
parent | 8213:e1272aeef31c |
child | 8217:5f4e0d67b82a |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Sat Apr 15 09:35:33 2017 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Wed Apr 26 12:05:06 2017 +0200 @@ -318,7 +318,7 @@ end local function create_encapsulating_item(id, payload, publisher, expose_publisher) - local item = st.stanza("item", { id = id }, xmlns_pubsub); + local item = st.stanza("item", { id = id, xmlns = xmlns_pubsub }); item:add_child(payload); if expose_publisher then item.attr.publisher = publisher;