diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-26 12:09:58 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-26 12:09:58 +0200 |
commit | d00c4eecc2c0fe02b1fbff12a472a650d602c4de (patch) | |
tree | 703466d8e1092c6fed347639d6c96b1e896f692c /plugins/mod_pep_plus.lua | |
parent | 3512924a628064a09bfa8ba5e0beed3c89601f5b (diff) | |
download | prosody-d00c4eecc2c0fe02b1fbff12a472a650d602c4de.tar.gz prosody-d00c4eecc2c0fe02b1fbff12a472a650d602c4de.zip |
mod_pubsub: Pass 'user' to simple_itemstore
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r-- | plugins/mod_pep_plus.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index 49def4e3..7872c03f 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -36,8 +36,10 @@ local function subscription_presence(user_bare, recipient) 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 @@ function get_pep_service(name) 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 |