Skip to content

Commit

Permalink
add imgur
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Jul 24, 2024
1 parent a5460ef commit ce4b1e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/pages/event/kaia-island/Artwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ const Artwork = ({ data, index, allArtworks }) => {
const id = src.split('/')?.[5]
return `https://lh3.googleusercontent.com/d/${id}`
}
if (src.includes('imgur')) {
return `${src}.jpg`
}
return src
}
if (!artwork?.title || !artwork?.image) return null
Expand Down

0 comments on commit ce4b1e3

Please sign in to comment.