changeset 4646:072d078be095

mod_storage_xmlarchive: Advertise capabilities (none atm) Both 'total' and 'quota' would be prohibitively expensive for the kind of archives this module targets as it would require counting items across the entire archive.
author Kim Alvefur <zash@zash.se>
date Fri, 13 Aug 2021 01:18:32 +0200
parents 25ce28711fac
children b91e40472d68
files mod_storage_xmlarchive/mod_storage_xmlarchive.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Fri Aug 13 01:06:15 2021 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Fri Aug 13 01:18:32 2021 +0200
@@ -22,6 +22,11 @@
 local archive = {};
 local archive_mt = { __index = archive };
 
+archive.caps = {
+	total = false,
+	quota = nil,
+};
+
 local is_stanza = st.is_stanza or function (s)
 	return getmetatable(s) == st.stanza_mt;
 end