From a0ac04c72b24c09a06105f07adba8df16dd34cab Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 22 Mar 2023 16:46:39 +0000 Subject: 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? --- plugins/mod_pep.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index c7afde6f..89edcf13 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -313,7 +313,7 @@ local function resend_last_item(jid, node, service) 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) -- cgit v1.2.3