perf: hydrate repost events in reblog endpoint & streaming

This commit is contained in:
P. Reis
2024-04-13 18:16:15 -03:00
parent 24efca5ea0
commit 37bee709cd
5 changed files with 38 additions and 18 deletions

View File

@@ -63,7 +63,7 @@ async function renderStatuses(c: AppContext, filters: NostrFilter[]) {
const statuses = (await Promise.all(events.map((event) => {
if (event.kind === 6) {
return renderReblog(event, {});
return renderReblog(event);
}
return renderStatus(event, c.get('pubkey'));
}))).filter((boolean) => boolean);