# HG changeset patch # User Emmanuel Gil Peyrot # Date 1491156534 -3600 # Node ID 66173e4b355abc217cb7355a43faa857127488b4 # Parent 5cbbe825d9d1d1f35dc71ff6aa3b0bf143714993 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. diff -r 5cbbe825d9d1 -r 66173e4b355a util/pubsub.lua --- a/util/pubsub.lua Sun Apr 02 19:08:54 2017 +0100 +++ b/util/pubsub.lua Sun Apr 02 19:08:54 2017 +0100 @@ -268,6 +268,7 @@ 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";