# HG changeset patch # User Kim Alvefur # Date 1534425509 -7200 # Node ID bd452e4f5a13977bd6176349bb07346655b0d7f5 # Parent 9f33a13eb011d98a8aaef2ab354ccdad3314922d mod_pubsub: Only attach publisher on normal "item" broadcasts The 'publisher' is only on in the schema. diff -r 9f33a13eb011 -r bd452e4f5a13 plugins/mod_pubsub/mod_pubsub.lua --- 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