mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_storage_internal: Return appropriate error even with empty archive
This commit is contained in:
parent
63333b9063
commit
99f6c69507
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ function archive:find(username, query)
|
|||
if err then
|
||||
return items, err;
|
||||
elseif query then
|
||||
if query.before or query.after then
|
||||
return nil, "item-not-found";
|
||||
end
|
||||
if query.total then
|
||||
return function () end, 0;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue