Explorar el Código

Fix YouTube thumbnail URLs

gpt-engineer-app[bot] hace 7 meses
padre
commit
70328a40c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/NewsCard.tsx

+ 1 - 1
src/components/NewsCard.tsx

@@ -54,7 +54,7 @@ const NewsCard = ({
 
 
   const getYouTubeThumbnail = (url: string) => {
   const getYouTubeThumbnail = (url: string) => {
     const videoId = getYouTubeVideoId(url);
     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 = () => {
   const handleCardClick = () => {