aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-08 18:23:40 +0200
committerKim Alvefur <zash@zash.se>2023-07-08 18:23:40 +0200
commitc82f504f6ace095dbc6f738925560d9860771f1f (patch)
tree32c8d97f13b9a2b647f04f990cdc6366a43b5cb0 /plugins
parent960f406662c436762033ce13422eb030d3a52f61 (diff)
downloadprosody-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')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua2
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