Parcourir la source

Fix YouTube thumbnail URLs

gpt-engineer-app[bot] il y a 7 mois
Parent
commit
70328a40c4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/components/NewsCard.tsx

+ 1 - 1
src/components/NewsCard.tsx

@@ -54,7 +54,7 @@ const NewsCard = ({
 
   const getYouTubeThumbnail = (url: string) => {
     const videoId = getYouTubeVideoId(url);
-    return videoId ? `http://img.youtube.com/vi/${videoId}/hqdefault.jpg` : null;
+    return videoId ? `https://img.youtube.com/vi/${videoId}/hqdefault.jpg` : null;
   };
 
   const handleCardClick = () => {