Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8215:835bb32c36b4 | 8216:d80233ca006d |
---|---|
316 origin.send(reply); | 316 origin.send(reply); |
317 return true; | 317 return true; |
318 end | 318 end |
319 | 319 |
320 local function create_encapsulating_item(id, payload, publisher, expose_publisher) | 320 local function create_encapsulating_item(id, payload, publisher, expose_publisher) |
321 local item = st.stanza("item", { id = id }, xmlns_pubsub); | 321 local item = st.stanza("item", { id = id, xmlns = xmlns_pubsub }); |
322 item:add_child(payload); | 322 item:add_child(payload); |
323 if expose_publisher then | 323 if expose_publisher then |
324 item.attr.publisher = publisher; | 324 item.attr.publisher = publisher; |
325 end | 325 end |
326 return item; | 326 return item; |