hydrate: move gatherMentions down

This commit is contained in:
Alex Gleason 2025-02-08 09:58:02 -06:00
parent 5811a19151
commit b8c67a85d0
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -30,10 +30,6 @@ async function hydrateEvents(opts: HydrateOpts): Promise<DittoEvent[]> {
const cache = [...events];
for (const event of await gatherMentions({ events: cache, store, signal })) {
cache.push(event);
}
for (const event of await gatherReposts({ events: cache, store, signal })) {
cache.push(event);
}
@ -46,6 +42,10 @@ async function hydrateEvents(opts: HydrateOpts): Promise<DittoEvent[]> {
cache.push(event);
}
for (const event of await gatherMentions({ events: cache, store, signal })) {
cache.push(event);
}
for (const event of await gatherAuthors({ events: cache, store, signal })) {
cache.push(event);
}