From 7245fe3db325f2b1bc4f88ef32ece93f0c68bc25 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 2 Apr 2017 19:08:54 +0100 Subject: util.pubsub: Add the publisher as an attribute in the item element. This makes the backend able to obtain the publisher without changing the API. --- util/pubsub.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util') diff --git a/util/pubsub.lua b/util/pubsub.lua index 8276c326..b063419e 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -268,6 +268,7 @@ function service:publish(node, actor, id, item) node_obj = self.nodes[node]; end local node_data = self.data[node]; + item.attr.publisher = actor; local ok = node_data:set(id, item); if not ok then return nil, "internal-server-error"; -- cgit v1.2.3