diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-15 02:27:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-15 02:27:07 +0200 |
commit | 794f85abf55cb08c53ae0f65e3068545d22e450e (patch) | |
tree | 7c752f56cf07754088da0a6a909c6c52d8d5e3c0 /plugins | |
parent | b176da9b89041c751f6b2b74e46571e2e86efe85 (diff) | |
download | prosody-794f85abf55cb08c53ae0f65e3068545d22e450e.tar.gz prosody-794f85abf55cb08c53ae0f65e3068545d22e450e.zip |
mod_storage_internal: Support the 'key' archive query field
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_storage_internal.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index 09760838..21a63c95 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -67,6 +67,11 @@ function archive:find(username, query) local i = 0; if query then items = array(items); + if query.key then + items:filter(function (item) + return item.key == query.key; + end); + end if query.with then items:filter(function (item) return item.with == query.with; |