diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-13 01:14:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-13 01:14:31 +0200 |
commit | 8304cba0c5ce7b3c7e7cbeb537714f1736878557 (patch) | |
tree | 60260d51031a9891c7d2292e819943bbff0d11e1 /plugins/mod_pep_plus.lua | |
parent | 39c7ba2a8fbef544e709068f87e51811251c5811 (diff) | |
download | prosody-8304cba0c5ce7b3c7e7cbeb537714f1736878557.tar.gz prosody-8304cba0c5ce7b3c7e7cbeb537714f1736878557.zip |
mod_pep_plus: Don't save subscriptions since they are normally session based and transient
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r-- | plugins/mod_pep_plus.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index 539fe9af..7955edb9 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -62,6 +62,15 @@ local function nodestore(username) return data, err; end function store:set(node, data) + if data then + -- Save the data without subscriptions + -- TODO Save explicit subscriptions maybe? + data = { + name = data.name; + config = data.config; + affiliations = data.affiliations; + }; + end return node_config:set(username, node, data); end function store:users() |