mod_storage_xmlarchive: Advertise capabilities (none atm)
authorKim Alvefur <zash@zash.se>
Fri, 13 Aug 2021 01:18:32 +0200
changeset 4650 072d078be095
parent 4649 25ce28711fac
child 4651 b91e40472d68
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.
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
--- 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