Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 9884:9751c17f5281
mod_storage_internal,_sql: Expose archive capabilities feature set
This was planned to be added long ago but was forgotten.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 22 Mar 2019 18:01:24 +0100 |
| parent | 9883:f76bd399267c |
| child | 9885:64e16d1e91f6 |
comparison
equal
deleted
inserted
replaced
| 9883:f76bd399267c | 9884:9751c17f5281 |
|---|---|
| 230 end | 230 end |
| 231 | 231 |
| 232 local archive_store = {} | 232 local archive_store = {} |
| 233 archive_store.caps = { | 233 archive_store.caps = { |
| 234 total = true; | 234 total = true; |
| 235 quota = archive_item_limit; | |
| 236 truncate = true; | |
| 235 }; | 237 }; |
| 236 archive_store.__index = archive_store | 238 archive_store.__index = archive_store |
| 237 function archive_store:append(username, key, value, when, with) | 239 function archive_store:append(username, key, value, when, with) |
| 238 local item_count = archive_item_count_cache:get(username); | 240 local item_count = archive_item_count_cache:get(username); |
| 239 if not item_count then | 241 if not item_count then |