Changeset

12427:018ac691ee22 0.12

mod_pubsub: Don't attempt to use server actor as publisher (fixes #1723)
author Matthew Wild <mwild1@gmail.com>
date Mon, 21 Mar 2022 12:36:20 +0000
parents 12423:3ae9299d61d7
children 12428:ba5bf1d9d9bd 12431:95f33a006c03
files plugins/mod_pubsub/mod_pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Mon Mar 21 10:06:48 2022 +0000
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Mon Mar 21 12:36:20 2022 +0000
@@ -84,7 +84,7 @@
 			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