From 0c49d0957bd8fe2c9ac9fbaab7c3c78f333daf92 Mon Sep 17 00:00:00 2001 From: Xavier B Date: Thu, 11 Apr 2024 18:06:40 -0400 Subject: [PATCH] fix(og): use correct dimensions and add fallback image --- src/components/OpenGraph/Artist/OpenGraphDefaultArtist.tsx | 2 +- src/pages/artist/[id].tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/OpenGraph/Artist/OpenGraphDefaultArtist.tsx b/src/components/OpenGraph/Artist/OpenGraphDefaultArtist.tsx index 38bbcd31..475e4aba 100644 --- a/src/components/OpenGraph/Artist/OpenGraphDefaultArtist.tsx +++ b/src/components/OpenGraph/Artist/OpenGraphDefaultArtist.tsx @@ -22,7 +22,7 @@ export function OpenGraphDefaultArtist( tw="rounded-full" height="400px" width="400px" - src={`${origin}/api/image?url=${artist.image}&w=256&q=75&f=image/png`} + src={`${origin}/api/image?url=${artist.image}&w=256&q=75&f=image/png&fallbackImg=https://cdn.stats.fm/file/statsfm/images/placeholders/users/private.webp`} />
= ({ artist, origin }) => { property="og:image:alt" content={`${artist.name}'s artist stats`} /> - - + +