fix: hydrate event_stats in hydrateRepostEvents()
This commit is contained in:
parent
6555675ef3
commit
ae5fe1e0ac
|
@ -139,7 +139,12 @@ async function hydrateRepostEvents(opts: Omit<HydrateEventOpts, 'relations'>): P
|
||||||
const originalPostEvent = results.find((event) => event.id === originalPostId);
|
const originalPostEvent = results.find((event) => event.id === originalPostId);
|
||||||
if (!originalPostEvent) continue;
|
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;
|
event.repost = originalPostEvent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue