🐛 Handle data uri as user avatar (#1621)

This commit is contained in:
Luke Vella 2025-03-07 11:02:12 +00:00 committed by GitHub
parent 19cfd33d66
commit 3e4b0f8a3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ export function OptimizedAvatarImage({
style={{ width: sizeToWidth[size], height: sizeToWidth[size] }}
>
{src ? (
src.startsWith("https") ? (
src.startsWith("https") || src.startsWith("data:") ? (
<AvatarImage src={src} alt={name} />
) : (
<Image