Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 12021:376522fb3f52
mod_pubsub: Allow specifying the JID of the pubsub service
This allows overriding it in cases where it is not equal to module.host,
like say, in mod_pep
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Dec 2021 13:03:55 +0100 |
parent | 11904:313d01cc4258 |
child | 12589:39ae08180c81 |
child | 13177:6f64542a1336 |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Mon Dec 06 22:38:27 2021 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Tue Dec 07 13:03:55 2021 +0100 @@ -309,7 +309,7 @@ end for _, id in ipairs(ret) do - reply:tag("item", { jid = module.host, name = id }):up(); + reply:tag("item", { jid = service.jid or module.host, name = id }):up(); end event.exists = true; end