feat: update unavatar link

This commit is contained in:
DIYgod 2024-07-08 20:10:08 +08:00
parent e829b05dec
commit ed04be028c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export function SiteIcon({
host = new URL(url).host
const pureDomain = parse(host).domainWithoutSuffix
fallback = `https://avatar.vercel.sh/${pureDomain}.svg?text=${pureDomain?.slice(0, 2).toUpperCase()}`
src = `https://unavatar.io/${host}?fallback=${fallback}`
src = `https://unavatar.follow.is/${host}?fallback=${fallback}`
} catch {
const pureDomain = parse(url).domainWithoutSuffix
src = `https://avatar.vercel.sh/${pureDomain}.svg?text=${pureDomain?.slice(0, 2).toUpperCase()}`