mod_pubsub: Send correct jid attribute in disco#items
authorKim Alvefur <zash@zash.se>
Sat, 08 Jul 2023 18:23:40 +0200
changeset 13181 6f64542a1336
parent 13143 5d5869f14c4d
child 13182 e689d4c45681
mod_pubsub: Send correct jid attribute in disco#items Fixes use in PEP where the JID does not equal the bare domain.
plugins/mod_pubsub/pubsub.lib.lua
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sat Jun 10 12:33:58 2023 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sat Jul 08 18:23:40 2023 +0200
@@ -309,7 +309,7 @@
 	end
 
 	for _, id in ipairs(ret) do
-		reply:tag("item", { jid = service.jid or module.host, name = id }):up();
+		reply:tag("item", { jid = service.config.jid or module.host, name = id }):up();
 	end
 	event.exists = true;
 end