# HG changeset patch # User Kim Alvefur # Date 1628810312 -7200 # Node ID 072d078be095e91a7521129d611bcd20d1270dde # Parent 25ce28711fac93fbeaa57020318dbaf557c130b2 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. diff -r 25ce28711fac -r 072d078be095 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