mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-22 13:36:01 +01:00
Hydrate event author in pipeline to relieve streaming API
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user