From 0ea985178e614a660bc8419ecf931717c78be333 Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 11 Jun 2024 21:07:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20-=20=EA=B5=AC=EB=A7=A4=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=9D=80=20=EC=9C=A0=EB=A3=8C=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EB=AC=BC=EC=9D=80=2015=EA=B8=80=EC=9E=90=EA=B9=8C?= =?UTF-8?q?=EC=A7=80=EB=A7=8C=20=EB=B3=B4=EC=9D=B4=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20-=2015=EA=B8=80=EC=9E=90=EA=B0=80=20?= =?UTF-8?q?=EB=84=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EA=B8=80=EC=9D=80=20?= =?UTF-8?q?=EC=A0=88=EB=B0=98=EB=A7=8C=20=EB=B3=B4=EC=9D=B4=EB=8F=84?= =?UTF-8?q?=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 --- .../profile/creatorCommunity/SelectCommunityPostResponse.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 423fc4e..6056e10 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 @@ -39,7 +39,11 @@ data class SelectCommunityPostResponse @QueryProjection constructor( if (existOrdered) { content } else { - content.substring(0, 15).plus("...") + if (content.length > 15) { + content.substring(0, 15).plus("...") + } else { + content.substring(0, content.length / 2).plus("...") + } } } else { content -- 2.40.1