Software /
code /
prosody
Diff
plugins/mod_pep_plus.lua @ 8218:2c75a5ba58fc
mod_pubsub: Pass 'user' to simple_itemstore
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 26 Apr 2017 12:09:58 +0200 |
parent | 8215:835bb32c36b4 |
child | 8300:7759eb130938 |
line wrap: on
line diff
--- a/plugins/mod_pep_plus.lua Wed Apr 26 12:06:41 2017 +0200 +++ b/plugins/mod_pep_plus.lua Wed Apr 26 12:09:58 2017 +0200 @@ -36,8 +36,10 @@ return is_contact_subscribed(username, host, recipient_bare); end -local function simple_itemstore(config, node) - return lib_pubsub.simple_itemstore(archive, config, node, false); +local function simple_itemstore(user) + return function (config, node) + return lib_pubsub.simple_itemstore(archive, config, user, node, false); + end end local function get_broadcaster(name) @@ -166,7 +168,7 @@ autocreate_on_publish = true; autocreate_on_subscribe = true; - itemstore = simple_itemstore; + itemstore = simple_itemstore(name); broadcaster = get_broadcaster(name); get_affiliation = function (jid) if jid_bare(jid) == name then