From c82f504f6ace095dbc6f738925560d9860771f1f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 8 Jul 2023 18:23:40 +0200 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 83cef808..3196569f 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -309,7 +309,7 @@ function _M.handle_disco_items_node(event, service) 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 -- cgit v1.2.3