fix: hydrate event_stats in hydrateRepostEvents()

This commit is contained in:
P. Reis 2024-04-19 10:23:34 -03:00
parent 6555675ef3
commit ae5fe1e0ac
1 changed files with 6 additions and 1 deletions

View File

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