Hydrate event author in pipeline to relieve streaming API

This commit is contained in:
Alex Gleason
2024-03-20 13:49:02 -05:00
parent 07ebb490d2
commit 25a4384587
2 changed files with 5 additions and 2 deletions

View File

@@ -63,8 +63,7 @@ const streamingController: AppController = (c) => {
if (filter) {
for await (const event of Sub.sub(socket, '1', [filter])) {
const author = await getAuthor(event.pubkey);
const status = await renderStatus({ ...event, author }, pubkey);
const status = await renderStatus(event, pubkey);
if (status) {
send('update', status);
}