refactor: hydrate authors through hydrateEvents() call

This commit is contained in:
P. Reis 2024-04-15 10:49:10 -03:00
parent b9c1d0c5fb
commit e77fd7d48b
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ async function hydrateRepostEvents(opts: Omit<HydrateEventOpts, 'relations'>): P
const originalPostEvent = results.find((event) => event.id === originalPostId);
if (!originalPostEvent) continue;
await hydrateAuthors({ events: [originalPostEvent], storage: storage, signal: signal });
await hydrateEvents({ events: [originalPostEvent], storage: storage, signal: signal, relations: ['author'] });
event.repost = originalPostEvent;
}
}