From 94f92950422de1df2da9ffa9e69420c114f26245 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 2 Nov 2023 17:35:10 +0100 Subject: util.datamanager: Clean up list index files on purge (i.e. user deletion) --- util/datamanager.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/datamanager.lua b/util/datamanager.lua index d7add98c..6d61aea5 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -701,6 +701,8 @@ local function purge(username, host) local ok, err = do_remove(getpath(username, host, store_name, "list")); if not ok then errs[#errs+1] = err; end + local ok, err = do_remove(getpath(username, host, store_name, "lidx")); + if not ok then errs[#errs+1] = err; end end end return #errs == 0, t_concat(errs, ", "); -- cgit v1.2.3