Software /
code /
prosody
Changeset
3823:5bde3e9d78a7
mod_pubsub: Ensure <item> is in correct scope when broadcasting an event
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Dec 2010 19:54:48 +0000 |
parents | 3822:d6028f4eb610 |
children | 3824:d02bb4839ac4 |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua Sun Dec 05 04:19:23 2010 +0100 +++ b/plugins/mod_pubsub.lua Sun Dec 05 19:54:48 2010 +0000 @@ -151,6 +151,8 @@ end function simple_broadcast(node, jids, item) + item = st.clone(item); + item.attr.xmlns = nil; -- Clear the pubsub namespace local message = st.message({ from = module.host, type = "headline" }) :tag("event", { xmlns = xmlns_pubsub_event }) :tag("items", { node = node })