Prechádzať zdrojové kódy

Fix YouTube thumbnail URLs

gpt-engineer-app[bot] 6 mesiacov pred
rodič
commit
70328a40c4
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 = () => {