mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix filter generation in db:export
This commit is contained in:
parent
e064531ca2
commit
04f155580c
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ export function buildFilter(args: ExportFilter) {
|
|||
if (invalid) throw new Error(`ERROR: Invalid pubkey ${invalid} supplied.`);
|
||||
filter.authors = authors;
|
||||
}
|
||||
if (ids) {
|
||||
if (ids && ids.length) {
|
||||
const invalid = findInvalid(ids);
|
||||
if (invalid) throw new Error(`ERROR: Invalid event ID ${invalid} supplied.`);
|
||||
filter.ids = ids;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue