# HG changeset patch # User Matthew Wild # Date 1679503599 0 # Node ID 1b179d14a1dde428e3894af80d158bead50a4f0d # Parent 1cbfa843f8c3fa6bd6c6cb137913e0d3da918cb3 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? diff -r 1cbfa843f8c3 -r 1b179d14a1dd plugins/mod_pep.lua --- 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)