Software /
code /
prosody
Changeset
8212:66173e4b355a
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.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 02 Apr 2017 19:08:54 +0100 |
parents | 8211:5cbbe825d9d1 |
children | 8213:e1272aeef31c |
files | util/pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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";