aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_plus.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-13 01:14:31 +0200
committerKim Alvefur <zash@zash.se>2018-07-13 01:14:31 +0200
commit0d53da8ffe62c93e134b9b2200edc69c7b110904 (patch)
tree60260d51031a9891c7d2292e819943bbff0d11e1 /plugins/mod_pep_plus.lua
parent922039c0d6cbdf9ea1f5be4878c857f99cb65a2f (diff)
downloadprosody-0d53da8ffe62c93e134b9b2200edc69c7b110904.tar.gz
prosody-0d53da8ffe62c93e134b9b2200edc69c7b110904.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.lua9
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()