Browse Source

Fix YouTube thumbnail URLs

gpt-engineer-app[bot] 7 tháng trước cách đây
mục cha
commit
70328a40c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = () => {