From 26b8dcee1b8d32dea6dfd8963f314699d58369de Mon Sep 17 00:00:00 2001
From: Klaus <klaus@vividnext.co.kr>
Date: Thu, 30 May 2024 02:39:51 +0900
Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?=
 =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EA=B2=8C=EC=8B=9C?=
 =?UTF-8?q?=EA=B8=80=20=EB=82=B4=EC=9A=A9=20-=20=EC=A0=84=EC=B2=B4=20?=
 =?UTF-8?q?=EB=82=B4=EC=9A=A9=EC=9D=84=20=EB=82=B4=EB=A0=A4=EC=A3=BC?=
 =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../CreatorCommunityService.kt                | 33 -------------------
 .../SelectCommunityPostResponse.kt            |  1 -
 2 files changed, 34 deletions(-)

diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt
index 39c83db..9ebd070 100644
--- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt
+++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt
@@ -185,19 +185,8 @@ class CreatorCommunityService(
 
                 val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
 
-                val content = if (it.price > 0 && memberId != it.creatorId) {
-                    if (existOrdered) {
-                        it.content
-                    } else {
-                        it.content.substring(0, 5).plus("...")
-                    }
-                } else {
-                    it.content
-                }
-
                 it.toCommunityPostListResponse(
                     imageHost = imageHost,
-                    content = content,
                     date = getTimeAgoString(it.date),
                     isLike = isLike,
                     existOrdered = if (memberId == it.creatorId) {
@@ -251,19 +240,8 @@ class CreatorCommunityService(
 
         val existOrdered = useCanRepository.isExistOrdered(postId = post.id, memberId = memberId)
 
-        val content = if (post.price > 0 && memberId != post.creatorId) {
-            if (existOrdered) {
-                post.content
-            } else {
-                post.content.substring(0, 5).plus("...")
-            }
-        } else {
-            post.content
-        }
-
         return post.toCommunityPostListResponse(
             imageHost = imageHost,
-            content = content,
             date = getTimeAgoString(post.date),
             isLike = isLike,
             existOrdered = if (memberId == post.creatorId) {
@@ -431,19 +409,8 @@ class CreatorCommunityService(
 
                 val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
 
-                val content = if (it.price > 0 && memberId != it.creatorId) {
-                    if (existOrdered) {
-                        it.content
-                    } else {
-                        it.content.substring(0, 5).plus("...")
-                    }
-                } else {
-                    it.content
-                }
-
                 it.toCommunityPostListResponse(
                     imageHost = imageHost,
-                    content = content,
                     date = getTimeAgoString(it.date),
                     isLike = isLike,
                     existOrdered = if (memberId == it.creatorId) {
diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt
index 90aa413..54a00b4 100644
--- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt
+++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt
@@ -17,7 +17,6 @@ data class SelectCommunityPostResponse @QueryProjection constructor(
 ) {
     fun toCommunityPostListResponse(
         imageHost: String,
-        content: String,
         date: String,
         isLike: Boolean,
         existOrdered: Boolean,