Make favourites stick, refactor some async logic in threads

This commit is contained in:
Alex Gleason
2023-08-29 14:44:59 -05:00
parent d4612d5f21
commit 2ee29bf1e2
5 changed files with 34 additions and 25 deletions

View File

@@ -40,7 +40,7 @@ async function renderStatuses(c: AppContext, filters: DittoFilter<1>[]) {
return c.json([]);
}
const statuses = await Promise.all(events.map(toStatus));
const statuses = await Promise.all(events.map((event) => toStatus(event, c.get('pubkey'))));
return paginated(c, events, statuses);
}