Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 13177:6f64542a1336
mod_pubsub: Send correct jid attribute in disco#items
Fixes use in PEP where the JID does not equal the bare domain.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Jul 2023 18:23:40 +0200 |
parent | 12021:376522fb3f52 |
child | 13179:1b1ed555f307 |
line wrap: on
line diff
--- 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