라이브, 콘텐츠, 채널 공유하기
- sns 공유시 보여줄 og data 제거 - shorturl이 적용되지 않은 상태에서 url이 너무 길기 떄문데 임시 적용
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
| @@ -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) { | ||||
|   | ||||
| @@ -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" + | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung