# HG changeset patch # User Kim Alvefur # Date 1531437271 -7200 # Node ID c5e738b54d77ef6a543750f9ae58d75e670c94f3 # Parent d4c2a3060e7e6d66332343110b108e824fcf5413 mod_pep_plus: Don't save subscriptions since they are normally session based and transient diff -r d4c2a3060e7e -r c5e738b54d77 plugins/mod_pep_plus.lua --- a/plugins/mod_pep_plus.lua Thu Jul 12 20:42:22 2018 +0200 +++ b/plugins/mod_pep_plus.lua Fri Jul 13 01:14:31 2018 +0200 @@ -62,6 +62,15 @@ 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()