aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_internal.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-15 02:27:43 +0200
committerKim Alvefur <zash@zash.se>2017-04-15 02:27:43 +0200
commit28ff66d12722f348b8afe7eebd018c5a0e4281a7 (patch)
tree3d260468008647fb5c3339b9fbbba5b2edc51610 /plugins/mod_storage_internal.lua
parent80661f1de092db42eed2e0df4457fc242f412366 (diff)
parent794f85abf55cb08c53ae0f65e3068545d22e450e (diff)
downloadprosody-28ff66d12722f348b8afe7eebd018c5a0e4281a7.tar.gz
prosody-28ff66d12722f348b8afe7eebd018c5a0e4281a7.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_storage_internal.lua')
-rw-r--r--plugins/mod_storage_internal.lua5
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;