# HG changeset patch # User Kim Alvefur # Date 1688833420 -7200 # Node ID 6f64542a1336273983366553629d6295270c2cb1 # Parent 5d5869f14c4de5231be0264098a6232ab44957d2 mod_pubsub: Send correct jid attribute in disco#items Fixes use in PEP where the JID does not equal the bare domain. diff -r 5d5869f14c4d -r 6f64542a1336 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