mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fetch each author's notes separately
This commit is contained in:
parent
5f0b1ffe79
commit
f1e9eb4f4c
1 changed files with 4 additions and 1 deletions
|
|
@ -35,8 +35,11 @@ const importUsers = async (
|
||||||
|
|
||||||
const matched = [
|
const matched = [
|
||||||
...await conn.query([{ kinds: [0, 3], authors, limit: 1000 }]),
|
...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 conn.close();
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
matched.map(async (event) => {
|
matched.map(async (event) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue