fix: 네이티브 공유 시 설명 텍스트 제거

This commit is contained in:
김성경 2026-08-20 13:21:46 +09:00
parent 17319e950e
commit 8be95778f3
4 changed files with 3 additions and 5 deletions

View File

@ -41,14 +41,12 @@ const ContentCardSocialActions: React.FC<ContentCardSocialActionsProps> = ({
const shareUrl = buildContentShareUrl(API_URL, videoId, contentType); const shareUrl = buildContentShareUrl(API_URL, videoId, contentType);
const shareTitle = title || storeName || t('videoDetail.kakaoDefaultTitle'); const shareTitle = title || storeName || t('videoDetail.kakaoDefaultTitle');
const shareDescription = description || t('videoDetail.kakaoDescription', { region: region ?? '' });
const handleShareBtnClick = async (e: React.MouseEvent) => { const handleShareBtnClick = async (e: React.MouseEvent) => {
e.stopPropagation(); e.stopPropagation();
const handled = await tryNativeShare({ const handled = await tryNativeShare({
title: shareTitle, title: shareTitle,
text: shareDescription,
url: shareUrl, url: shareUrl,
}); });
if (handled) { if (handled) {

View File

@ -104,7 +104,6 @@ const VideoDetailContent: React.FC<VideoDetailContentProps> = ({ videoId, isModa
const shareUrl = buildVideoShareUrl(API_URL, videoId); const shareUrl = buildVideoShareUrl(API_URL, videoId);
const shareTitle = video?.title || video?.store_name || t('videoDetail.kakaoDefaultTitle'); const shareTitle = video?.title || video?.store_name || t('videoDetail.kakaoDefaultTitle');
const shareDescription = video?.description || t('videoDetail.kakaoDescription', { region: video?.region ?? '' });
const handleCopyLink = async () => { const handleCopyLink = async () => {
try { try {
@ -119,7 +118,6 @@ const VideoDetailContent: React.FC<VideoDetailContentProps> = ({ videoId, isModa
const handleShareButtonClick = async () => { const handleShareButtonClick = async () => {
const handled = await tryNativeShare({ const handled = await tryNativeShare({
title: shareTitle, title: shareTitle,
text: shareDescription,
url: shareUrl, url: shareUrl,
}); });
if (handled) { if (handled) {

View File

@ -143,7 +143,6 @@ const SsulDetailContent: React.FC<SsulDetailContentProps> = ({
const handleShareButtonClick = async () => { const handleShareButtonClick = async () => {
const handled = await tryNativeShare({ const handled = await tryNativeShare({
title: content?.store_name ?? t('videoDetail.kakaoDefaultTitle'), title: content?.store_name ?? t('videoDetail.kakaoDefaultTitle'),
text: t('videoDetail.kakaoDescription', { region: content?.region ?? '' }),
url: shareUrl, url: shareUrl,
}); });
if (handled) { if (handled) {

View File

@ -1,6 +1,9 @@
/** /**
* . * .
* *
* `text` URL을 .
* · OG (`og:title`, `og:description`) , url( title) .
*
* . * .
*/ */
export async function tryNativeShare(data: ShareData): Promise<boolean> { export async function tryNativeShare(data: ShareData): Promise<boolean> {