mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
try-catch favicon fetch
This commit is contained in:
parent
dd009de5be
commit
8386fe7609
1 changed files with 5 additions and 1 deletions
|
|
@ -240,7 +240,11 @@ async function updateAuthorData(event: NostrEvent, signal: AbortSignal): Promise
|
|||
// Fetch favicon.
|
||||
const domain = nip05?.split('@')[1].toLowerCase();
|
||||
if (domain) {
|
||||
try {
|
||||
await faviconCache.fetch(domain, { signal });
|
||||
} catch {
|
||||
// Fallthrough.
|
||||
}
|
||||
}
|
||||
|
||||
const search = [name, nip05].filter(Boolean).join(' ').trim();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue