Changeset

9029:c5e738b54d77

mod_pep_plus: Don't save subscriptions since they are normally session based and transient
author Kim Alvefur <zash@zash.se>
date Fri, 13 Jul 2018 01:14:31 +0200
parents 9028:d4c2a3060e7e
children 9030:7d0b7e086c6a
files plugins/mod_pep_plus.lua
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()