diff --git a/src/components/ContentCardSocialActions.tsx b/src/components/ContentCardSocialActions.tsx index b2d1114..f2dcdcf 100644 --- a/src/components/ContentCardSocialActions.tsx +++ b/src/components/ContentCardSocialActions.tsx @@ -41,14 +41,12 @@ const ContentCardSocialActions: React.FC = ({ const shareUrl = buildContentShareUrl(API_URL, videoId, contentType); const shareTitle = title || storeName || t('videoDetail.kakaoDefaultTitle'); - const shareDescription = description || t('videoDetail.kakaoDescription', { region: region ?? '' }); const handleShareBtnClick = async (e: React.MouseEvent) => { e.stopPropagation(); const handled = await tryNativeShare({ title: shareTitle, - text: shareDescription, url: shareUrl, }); if (handled) { diff --git a/src/components/VideoDetailContent.tsx b/src/components/VideoDetailContent.tsx index e0989dd..44d2e20 100644 --- a/src/components/VideoDetailContent.tsx +++ b/src/components/VideoDetailContent.tsx @@ -104,7 +104,6 @@ const VideoDetailContent: React.FC = ({ videoId, isModa const shareUrl = buildVideoShareUrl(API_URL, videoId); const shareTitle = video?.title || video?.store_name || t('videoDetail.kakaoDefaultTitle'); - const shareDescription = video?.description || t('videoDetail.kakaoDescription', { region: video?.region ?? '' }); const handleCopyLink = async () => { try { @@ -119,7 +118,6 @@ const VideoDetailContent: React.FC = ({ videoId, isModa const handleShareButtonClick = async () => { const handled = await tryNativeShare({ title: shareTitle, - text: shareDescription, url: shareUrl, }); if (handled) { diff --git a/src/pages/Ssulbox/SsulDetailContent.tsx b/src/pages/Ssulbox/SsulDetailContent.tsx index 00e9af0..2b60897 100644 --- a/src/pages/Ssulbox/SsulDetailContent.tsx +++ b/src/pages/Ssulbox/SsulDetailContent.tsx @@ -143,7 +143,6 @@ const SsulDetailContent: React.FC = ({ const handleShareButtonClick = async () => { const handled = await tryNativeShare({ title: content?.store_name ?? t('videoDetail.kakaoDefaultTitle'), - text: t('videoDetail.kakaoDescription', { region: content?.region ?? '' }), url: shareUrl, }); if (handled) { diff --git a/src/utils/nativeShare.ts b/src/utils/nativeShare.ts index 50b8a96..7ed04d5 100644 --- a/src/utils/nativeShare.ts +++ b/src/utils/nativeShare.ts @@ -1,6 +1,9 @@ /** * 기기의 네이티브 공유 시트를 열고 요청을 처리했는지 반환합니다. * + * 긴 `text`를 넣으면 카카오 등이 URL을 미리보기가 아니라 본문 텍스트로만 보냅니다. + * 제목·설명은 OG 페이지(`og:title`, `og:description`)에 두고, 여기에는 url(과 짧은 title)만 넘깁니다. + * * 사용자가 공유 시트를 닫은 경우도 정상적으로 처리된 것으로 간주합니다. */ export async function tryNativeShare(data: ShareData): Promise {