Software /
code /
prosody
Changeset
9187:bd452e4f5a13
mod_pubsub: Only attach publisher on normal "item" broadcasts
The 'publisher' is only on <item> in the schema.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Aug 2018 15:18:29 +0200 |
parents | 9186:9f33a13eb011 |
children | 9188:ef2616ade453 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Thu Aug 16 15:07:28 2018 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Thu Aug 16 15:18:29 2018 +0200 @@ -59,8 +59,10 @@ if item then item = st.clone(item); item.attr.xmlns = nil; -- Clear the pubsub namespace - if expose_publisher and actor then - item.attr.publisher = actor + if kind == "items" then + if expose_publisher and actor then + item.attr.publisher = actor + end end end