diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-03-21 12:36:20 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-03-21 12:36:20 +0000 |
commit | ea9ea679110d161e12d7be441258307a461f2150 (patch) | |
tree | 5e537b99913caac67ca069f48d440e6390df069c | |
parent | ff2a6d764e1dc56197b05c7c1c64b8b5832f0ed1 (diff) | |
download | prosody-ea9ea679110d161e12d7be441258307a461f2150.tar.gz prosody-ea9ea679110d161e12d7be441258307a461f2150.zip |
mod_pubsub: Don't attempt to use server actor as publisher (fixes #1723)
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index db615035..ef31f326 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -84,7 +84,7 @@ function simple_broadcast(kind, node, jids, item, actor, node_obj, service) --lu end if not expose_publisher then item.attr.publisher = nil; - elseif not item.attr.publisher then + elseif not item.attr.publisher and actor ~= true then item.attr.publisher = service.config.normalize_jid(actor); end end |