Diff

mod_pubsub_text_interface/mod_pubsub_text_interface.lua @ 4489:725768d83830

mod_pubsub_text_interface: Pass node object to broadcaster for config access Otherwise certain node settings have no effect when asking for the last item
author Kim Alvefur <zash@zash.se>
date Tue, 02 Mar 2021 19:20:41 +0100
parent 4234:f31eac6b2e9c
child 4644:bbf9e36db3a9
line wrap: on
line diff
--- a/mod_pubsub_text_interface/mod_pubsub_text_interface.lua	Tue Mar 02 18:38:13 2021 +0100
+++ b/mod_pubsub_text_interface/mod_pubsub_text_interface.lua	Tue Mar 02 19:20:41 2021 +0100
@@ -77,7 +77,7 @@
 		else
 			pubsub.config.broadcaster("items", node_arg, {
 				[from] = { ["pubsub#include_body"] = true }
-			}, item);
+			}, item, nil, pubsub.nodes[node_arg]);
 			reply:body("OK");
 		end
 	else