Software /
code /
prosody
Diff
util/pubsub.lua @ 6515:c9a72c64c3e2
mod_pubsub: Add support for including the publisher in item broadcasts
author | Philipp Hancke <fippo@goodadvice.pages.de> |
---|---|
date | Thu, 20 Nov 2014 09:01:45 +0000 |
parent | 6439:d58ad8bd244b |
child | 6516:ecd8d6437053 |
child | 6777:5de6b93d0190 |
line wrap: on
line diff
--- a/util/pubsub.lua Sun Nov 09 20:30:04 2014 +0100 +++ b/util/pubsub.lua Thu Nov 20 09:01:45 2014 +0000 @@ -294,7 +294,7 @@ 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