diff options
author | Kim Alvefur <zash@zash.se> | 2023-11-02 17:35:10 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-11-02 17:35:10 +0100 |
commit | 94f92950422de1df2da9ffa9e69420c114f26245 (patch) | |
tree | 5f642584930860b7fbfe7faaf48475b1f3980ae4 /util | |
parent | dc6ac6fe4ec6a3ac96c343a7c939a44022c9b677 (diff) | |
download | prosody-94f92950422de1df2da9ffa9e69420c114f26245.tar.gz prosody-94f92950422de1df2da9ffa9e69420c114f26245.zip |
util.datamanager: Clean up list index files on purge (i.e. user deletion)
Diffstat (limited to 'util')
-rw-r--r-- | util/datamanager.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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, ", "); |