mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
format
This commit is contained in:
parent
949697d80a
commit
29eb87dab3
1 changed files with 2 additions and 2 deletions
|
|
@ -192,7 +192,7 @@ async function fetchRelatedEvents(event: DittoEvent) {
|
||||||
const signal = AbortSignal.timeout(3000);
|
const signal = AbortSignal.timeout(3000);
|
||||||
reqmeister.query([{ kinds: [0], authors: [event.pubkey] }], { signal })
|
reqmeister.query([{ kinds: [0], authors: [event.pubkey] }], { signal })
|
||||||
.then((events) => Promise.allSettled(events.map((event) => handleEvent(event, signal))))
|
.then((events) => Promise.allSettled(events.map((event) => handleEvent(event, signal))))
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [name, id] of event.tags) {
|
for (const [name, id] of event.tags) {
|
||||||
|
|
@ -202,7 +202,7 @@ async function fetchRelatedEvents(event: DittoEvent) {
|
||||||
const signal = AbortSignal.timeout(3000);
|
const signal = AbortSignal.timeout(3000);
|
||||||
reqmeister.query([{ ids: [id] }], { signal })
|
reqmeister.query([{ ids: [id] }], { signal })
|
||||||
.then((events) => Promise.allSettled(events.map((event) => handleEvent(event, signal))))
|
.then((events) => Promise.allSettled(events.map((event) => handleEvent(event, signal))))
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue