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:
parent
08484e19b3
commit
d5e93edd22
@ -321,7 +321,6 @@ export default function VideoModal({ video, isOpen, onClose }: VideoModalProps)
|
|||||||
<FacebookShareButton
|
<FacebookShareButton
|
||||||
url={getShareUrl()}
|
url={getShareUrl()}
|
||||||
hashtag="#video"
|
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">
|
<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 />
|
<FacebookIcon size={20} round />
|
||||||
@ -332,7 +331,6 @@ export default function VideoModal({ video, isOpen, onClose }: VideoModalProps)
|
|||||||
<TwitterShareButton
|
<TwitterShareButton
|
||||||
url={getShareUrl()}
|
url={getShareUrl()}
|
||||||
title={`Watch: ${video.title}`}
|
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">
|
<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 />
|
<TwitterIcon size={20} round />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user