aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/pubsub.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-26 12:05:06 +0200
committerKim Alvefur <zash@zash.se>2017-04-26 12:05:06 +0200
commit5cddb86b64d1fe1061c6cebe53b6fa0f905b500f (patch)
tree87c11f4f6135408f25be0f0dd6aef4a34c04857d /plugins/mod_pubsub/pubsub.lib.lua
parentca4c5de133c8c29a01119426585df7cb2696af2e (diff)
downloadprosody-5cddb86b64d1fe1061c6cebe53b6fa0f905b500f.tar.gz
prosody-5cddb86b64d1fe1061c6cebe53b6fa0f905b500f.zip
mod_pubsub: Pass xmlns correctly
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 45c6933f..37fbc902 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -318,7 +318,7 @@ function handlers.get_default(origin, stanza, default, service)
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;