chore: use webp unavatar

This commit is contained in:
Stephen Zhou
2024-10-21 21:27:46 +08:00
parent 68320bc23b
commit 969cebfd2d
+1 -1
View File
@@ -267,7 +267,7 @@ export const getUrlIcon = (url: string, fallback?: boolean | undefined) => {
fallbackUrl = `https://avatar.vercel.sh/${pureDomain}.svg?text=${pureDomain
?.slice(0, 2)
.toUpperCase()}`
src = `https://unavatar.follow.is/${host}?fallback=${fallback || false}`
src = `https://unavatar.webp.se/${host}?fallback=${fallback || false}`
} catch {
const pureDomain = parse(url).domainWithoutSuffix
src = `https://avatar.vercel.sh/${pureDomain}.svg?text=${pureDomain?.slice(0, 2).toUpperCase()}`