aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPhilipp Hancke <fippo@goodadvice.pages.de>2014-11-20 09:01:45 +0000
committerPhilipp Hancke <fippo@goodadvice.pages.de>2014-11-20 09:01:45 +0000
commite5282813cb1a618d76c4763d69d7dd354d8c12fc (patch)
treef418eb9a9dcd34b9c9c28aa74bc20340b0e708a9 /util
parent61b8eb49edf8e9a2d1ae2d55a898fc6e69a6f59e (diff)
downloadprosody-e5282813cb1a618d76c4763d69d7dd354d8c12fc.tar.gz
prosody-e5282813cb1a618d76c4763d69d7dd354d8c12fc.zip
mod_pubsub: Add support for including the publisher in item broadcasts
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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