Skip to content

Commit

Permalink
Merge pull request #52 from Noctember/main
Browse files Browse the repository at this point in the history
fix(og): use correct dimensions and add fallback image
  • Loading branch information
stijnvdkolk authored Apr 11, 2024
2 parents 9a34fe6 + 0c49d09 commit 3fbba58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/OpenGraph/Artist/OpenGraphDefaultArtist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`}
/>
</div>
<div
Expand Down
4 changes: 2 additions & 2 deletions src/pages/artist/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ const Artist: NextPage<Props> = ({ artist, origin }) => {
property="og:image:alt"
content={`${artist.name}'s artist stats`}
/>
<meta property="og:image:width" content="240" />
<meta property="og:image:height" content="240" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:title" content={`${artist.name} | stats.fm`} />
<meta
property="og:description"
Expand Down

0 comments on commit 3fbba58

Please sign in to comment.