From 8304cba0c5ce7b3c7e7cbeb537714f1736878557 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 13 Jul 2018 01:14:31 +0200 Subject: mod_pep_plus: Don't save subscriptions since they are normally session based and transient --- plugins/mod_pep_plus.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- cgit v1.2.3