Skip to content

Commit

Permalink
fix: remove black bars from youtube thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Dec 14, 2023
1 parent aee4a08 commit 76f45f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/posts/view-post/PostPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const InnerPostPage: NextPage<PostDetailsProps> = props => {
if (!usedImage && link) {
const embedType = getEmbedLinkType(link)
if (embedType === 'youtube' || embedType === 'youtu.be') {
usedImage = `https://img.youtube.com/vi/${getYoutubeVideoId(link)}/hqdefault.jpg`
usedImage = `https://i3.ytimg.com/vi/${getYoutubeVideoId(link)}/maxresdefault.jpg`
}
}

Expand Down

0 comments on commit 76f45f8

Please sign in to comment.