# HG changeset patch # User Kim Alvefur # Date 1553274084 -3600 # Node ID 9751c17f52813824c3ad8bbdba1ffeb94606d0b5 # Parent f76bd399267c6322f6f954953907e4a777e903fb mod_storage_internal,_sql: Expose archive capabilities feature set This was planned to be added long ago but was forgotten. diff -r f76bd399267c -r 9751c17f5281 plugins/mod_storage_internal.lua --- a/plugins/mod_storage_internal.lua Fri Oct 20 12:53:53 2017 +0200 +++ b/plugins/mod_storage_internal.lua Fri Mar 22 18:01:24 2019 +0100 @@ -47,6 +47,12 @@ local archive = {}; driver.archive = { __index = archive }; +archive.caps = { + total = true; + quota = archive_item_limit; + truncate = true; +}; + function archive:append(username, key, value, when, with) when = when or now(); if not st.is_stanza(value) then diff -r f76bd399267c -r 9751c17f5281 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Fri Oct 20 12:53:53 2017 +0200 +++ b/plugins/mod_storage_sql.lua Fri Mar 22 18:01:24 2019 +0100 @@ -232,6 +232,8 @@ local archive_store = {} archive_store.caps = { total = true; + quota = archive_item_limit; + truncate = true; }; archive_store.__index = archive_store function archive_store:append(username, key, value, when, with)