Software /
code /
prosody
Changeset
8089:4ba8cb75d925
mod_storage_internal: Support the 'key' archive query field
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Apr 2017 02:27:07 +0200 |
parents | 8087:eb38f3b919be |
children | 8090:00d1fb300c74 8092:0a1c0f1107d2 |
files | plugins/mod_storage_internal.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Sat Apr 15 02:10:49 2017 +0200 +++ b/plugins/mod_storage_internal.lua Sat Apr 15 02:27:07 2017 +0200 @@ -67,6 +67,11 @@ 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;