浏览代码

Fix YouTube thumbnail URLs

gpt-engineer-app[bot] 6 月之前
父节点
当前提交
70328a40c4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 = () => {