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
commit8304cba0c5ce7b3c7e7cbeb537714f1736878557 (patch)
tree60260d51031a9891c7d2292e819943bbff0d11e1 /plugins/mod_pep_plus.lua
parent39c7ba2a8fbef544e709068f87e51811251c5811 (diff)
downloadprosody-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.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()