aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-03-22 16:46:39 +0000
committerMatthew Wild <mwild1@gmail.com>2023-03-22 16:46:39 +0000
commita0ac04c72b24c09a06105f07adba8df16dd34cab (patch)
tree2167ad0aacfe5d664cc49118cae4a63001702626
parent2b72eb4211c20aba941be08b9d87d7d957ef465b (diff)
downloadprosody-a0ac04c72b24c09a06105f07adba8df16dd34cab.tar.gz
prosody-a0ac04c72b24c09a06105f07adba8df16dd34cab.zip
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?
-rw-r--r--plugins/mod_pep.lua2
1 files changed, 1 insertions, 1 deletions
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)