From 72d37b6bb619c95b5bb38386f6327ed68bbea66a Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 7 Mar 2025 14:40:18 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C,=20=EC=BD=98?= =?UTF-8?q?=ED=85=90=EC=B8=A0,=20=EC=B1=84=EB=84=90=20=EA=B3=B5=EC=9C=A0?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20-=20sns=20=EA=B3=B5=EC=9C=A0=EC=8B=9C=20?= =?UTF-8?q?=EB=B3=B4=EC=97=AC=EC=A4=84=20og=20data=20=EC=A0=9C=EA=B1=B0=20?= =?UTF-8?q?-=20shorturl=EC=9D=B4=20=EC=A0=81=EC=9A=A9=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=80=20=EC=83=81=ED=83=9C=EC=97=90=EC=84=9C=20url?= =?UTF-8?q?=EC=9D=B4=20=EB=84=88=EB=AC=B4=20=EA=B8=B8=EA=B8=B0=20=EB=96=84?= =?UTF-8?q?=EB=AC=B8=EB=8D=B0=20=EC=9E=84=EC=8B=9C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Content/Detail/ContentDetailViewModel.swift | 7 ++----- .../Explorer/Profile/UserProfileViewModel.swift | 5 +---- SodaLive/Sources/Live/Room/LiveRoomViewModel.swift | 10 ++-------- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/SodaLive/Sources/Content/Detail/ContentDetailViewModel.swift b/SodaLive/Sources/Content/Detail/ContentDetailViewModel.swift index 0aeb254..373beb1 100644 --- a/SodaLive/Sources/Content/Detail/ContentDetailViewModel.swift +++ b/SodaLive/Sources/Content/Detail/ContentDetailViewModel.swift @@ -202,13 +202,10 @@ final class ContentDetailViewModel: ObservableObject { func shareAudioContent(contentImage: String, contentTitle: String) { isLoading = true - var params = [ + let params = [ "af_dp": "voiceon://", "deep_link_value": "content", - "deep_link_sub5": "\(contentId)", - "af_og_title": contentTitle, - "af_og_description": "지금 보이스온에서 이 콘텐츠 감상하기", - "af_og_image": contentImage + "deep_link_sub5": "\(contentId)" ] if let shareUrl = createOneLinkUrlWithURLComponents(params: params) { diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift b/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift index 31bf081..5f81d1e 100644 --- a/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift +++ b/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift @@ -404,10 +404,7 @@ final class UserProfileViewModel: ObservableObject { let params = [ "af_dp": "voiceon://", "deep_link_value": "channel", - "deep_link_sub5": "\(userId)", - "af_og_title": "보이스온", - "af_og_description": "보이스온 \(nickname)님의 채널입니다.", - "af_og_image": profileImage + "deep_link_sub5": "\(userId)" ] if let shareUrl = createOneLinkUrlWithURLComponents(params: params) { diff --git a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift index e1ddf72..28ffe10 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift @@ -925,18 +925,12 @@ final class LiveRoomViewModel: NSObject, ObservableObject { func shareRoom() { if let liveRoomInfo = self.liveRoomInfo { - var params = [ + let params = [ "af_dp": "voiceon://", "deep_link_value": "live", - "deep_link_sub5": "\(AppState.shared.roomId)", - "af_og_title": "보이스온", - "af_og_description": "지금 보이스온에서 라이브 참여하기" + "deep_link_sub5": "\(AppState.shared.roomId)" ] - if let coverImageUrl = coverImageUrl { - params["af_og_image"] = coverImageUrl - } - if let shareUrl = createOneLinkUrlWithURLComponents(params: params) { if liveRoomInfo.isPrivateRoom { shareMessage = "\(UserDefaults.string(forKey: .nickname))님이 귀하를 보이스온 비공개라이브에 초대하였습니다.\n" +