mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 05:54:23 +01:00
Merge branch 'fix-db-export' into 'main'
fix filter generation in db:export See merge request soapbox-pub/ditto!533
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user