mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-31 19:14:27 +01:00
fetch each author's notes separately
This commit is contained in:
@@ -35,8 +35,11 @@ const importUsers = async (
|
||||
|
||||
const matched = [
|
||||
...await conn.query([{ kinds: [0, 3], authors, limit: 1000 }]),
|
||||
...(!profilesOnly ? [] : await conn.query([{ kinds: [1], authors, limit: 1000 }])),
|
||||
...(!profilesOnly ? [] : await conn.query(
|
||||
authors.map((author) => ({ kinds: [1], authors: [author], limit: 200 })),
|
||||
)),
|
||||
];
|
||||
|
||||
await conn.close();
|
||||
await Promise.all(
|
||||
matched.map(async (event) => {
|
||||
|
||||
Reference in New Issue
Block a user