diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-08 18:23:40 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-08 18:23:40 +0200 |
commit | c82f504f6ace095dbc6f738925560d9860771f1f (patch) | |
tree | 32c8d97f13b9a2b647f04f990cdc6366a43b5cb0 /plugins/mod_pubsub/pubsub.lib.lua | |
parent | 960f406662c436762033ce13422eb030d3a52f61 (diff) | |
download | prosody-c82f504f6ace095dbc6f738925560d9860771f1f.tar.gz prosody-c82f504f6ace095dbc6f738925560d9860771f1f.zip |
mod_pubsub: Send correct jid attribute in disco#items
Fixes use in PEP where the JID does not equal the bare domain.
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |