From 958a4e177ba331c8a1e6ccd333ab5892a8f86bfc Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 20 Nov 2014 09:01:45 +0000 Subject: mod_pubsub: Add support for including the publisher in item broadcasts --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index 2f8525b6..c15a41d7 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -294,7 +294,7 @@ function service:publish(node, actor, id, item) node_data[id] = item; trim_items(node_data, node_obj.config["pubsub#max_items"]); self.events.fire_event("item-published", { node = node, actor = actor, id = id, item = item }); - self.config.broadcaster("items", node, node_obj.subscribers, item); + self.config.broadcaster("items", node, node_obj.subscribers, item, actor); return true; end -- cgit v1.2.3