mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-28 18:54:27 +01:00
Make favourites stick, refactor some async logic in threads
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user