# HG changeset patch # User Kim Alvefur # Date 1492216027 -7200 # Node ID 4ba8cb75d925001cbe5075dbc649d008084005e3 # Parent eb38f3b919be73fed6371fefeca712f448462262 mod_storage_internal: Support the 'key' archive query field diff -r eb38f3b919be -r 4ba8cb75d925 plugins/mod_storage_internal.lua --- 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;