Software /
code /
prosody
Changeset
12962:1b179d14a1dd
mod_pep: Pass node/service objects to broadcaster when resending last item
This gives the broadcaster access to the node configuration, which is now
important for itemreply. It probably also fixes a bug with the notify_*
node config options?
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Mar 2023 16:46:39 +0000 |
parents | 12961:1cbfa843f8c3 |
children | 12963:276b7d470433 |
files | plugins/mod_pep.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Wed Mar 22 16:44:47 2023 +0000 +++ b/plugins/mod_pep.lua Wed Mar 22 16:46:39 2023 +0000 @@ -313,7 +313,7 @@ if ok and config.send_last_published_item ~= "on_sub_and_presence" then return end local ok, id, item = service:get_last_item(node, jid); if not (ok and id) then return; end - service.config.broadcaster("items", node, { [jid] = true }, item); + service.config.broadcaster("items", node, { [jid] = true }, item, true, service.nodes[node], service); end local function update_subscriptions(recipient, service_name, nodes)