aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-05 16:07:16 +0200
committerKim Alvefur <zash@zash.se>2019-05-05 16:07:16 +0200
commitef95de88710184351f130090685c5bc7ae7fbcaf (patch)
tree98272daf6730d2f2fc2d6508a9dd45e3773efbf4 /plugins
parente6706dee7ff715d50e8ec03762bbf6f8625cb8a8 (diff)
downloadprosody-ef95de88710184351f130090685c5bc7ae7fbcaf.tar.gz
prosody-ef95de88710184351f130090685c5bc7ae7fbcaf.zip
mod_storage_internal: Add support for iterating over users in archive stores
May help with writing a better migrator
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_internal.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua
index f921747e..96780b33 100644
--- a/plugins/mod_storage_internal.lua
+++ b/plugins/mod_storage_internal.lua
@@ -211,6 +211,10 @@ function archive:summary(username, query)
return summary;
end
+function archive:users()
+ return datamanager.users(host, self.store, "list");
+end
+
function archive:delete(username, query)
local cache_key = jid_join(username, host, self.store);
if not query or next(query) == nil then