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 | 18c92af84956c0d46b7bcf813f58dd7a8191758f (patch) | |
tree | d1a973d661e6bb5ce953abb2db3e746ee6711607 /util | |
parent | aef168e50738eadb707f2f350a49902df8b41f31 (diff) | |
download | prosody-18c92af84956c0d46b7bcf813f58dd7a8191758f.tar.gz prosody-18c92af84956c0d46b7bcf813f58dd7a8191758f.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"; |