pipeline: trackRelatedEvents -> fetchRelatedEvents

This commit is contained in:
Alex Gleason 2023-12-26 13:27:48 -06:00
parent 04925a580b
commit 62675218ce
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ async function handleEvent(event: Event): Promise<void> {
processDeletions(event),
trackRelays(event),
trackHashtags(event),
trackRelatedEvents(event, data),
fetchRelatedEvents(event, data),
processMedia(event, data),
streamOut(event, data),
broadcast(event, data),
@ -138,8 +138,8 @@ function trackRelays(event: Event) {
return addRelays([...relays]);
}
/** Track related events to fetch. */
function trackRelatedEvents(event: Event, data: EventData) {
/** Queue related events to fetch. */
function fetchRelatedEvents(event: Event, data: EventData) {
if (!data.user) {
reqmeister.req({ kinds: [0], authors: [event.pubkey] }).catch(() => {});
}