From ea9ea679110d161e12d7be441258307a461f2150 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 21 Mar 2022 12:36:20 +0000 Subject: mod_pubsub: Don't attempt to use server actor as publisher (fixes #1723) --- plugins/mod_pubsub/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub') 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 -- cgit v1.2.3