Improve social sharing by fixing thumbnail issues on shared videos

Fix: Remove media property from TwitterShareButton and picture from FacebookShareButton.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 11420304-80a9-4ef2-adff-cbdaa418ffa8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/11420304-80a9-4ef2-adff-cbdaa418ffa8/66bsivW
This commit is contained in:
sebastjanartic 2025-08-05 06:16:14 +00:00
parent 08484e19b3
commit d5e93edd22

View File

@ -321,7 +321,6 @@ export default function VideoModal({ video, isOpen, onClose }: VideoModalProps)
<FacebookShareButton
url={getShareUrl()}
hashtag="#video"
picture={videoThumbnail || undefined}
>
<div className="flex items-center gap-2 p-2 w-full hover:bg-gray-100 dark:hover:bg-gray-700 rounded cursor-pointer">
<FacebookIcon size={20} round />
@ -332,7 +331,6 @@ export default function VideoModal({ video, isOpen, onClose }: VideoModalProps)
<TwitterShareButton
url={getShareUrl()}
title={`Watch: ${video.title}`}
media={videoThumbnail || undefined}
>
<div className="flex items-center gap-2 p-2 w-full hover:bg-gray-100 dark:hover:bg-gray-700 rounded cursor-pointer">
<TwitterIcon size={20} round />