Software /
code /
prosody
Diff
plugins/mod_pep.lua @ 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 |
parent | 12960:31b22cc221b5 |
child | 12977:74b9e05af71e |
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)