diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-04-02 19:08:54 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-04-02 19:08:54 +0100 |
commit | 7245fe3db325f2b1bc4f88ef32ece93f0c68bc25 (patch) | |
tree | d1a973d661e6bb5ce953abb2db3e746ee6711607 /util | |
parent | 076c1356e8c11e939393b2f4a8ff5c9e77124374 (diff) | |
download | prosody-7245fe3db325f2b1bc4f88ef32ece93f0c68bc25.tar.gz prosody-7245fe3db325f2b1bc4f88ef32ece93f0c68bc25.zip |
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.
Diffstat (limited to 'util')
-rw-r--r-- | util/pubsub.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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"; |