From 6daaf22dc046453a156ba52c828532b9061aa339 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 15 Jun 2024 20:49:58 +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=EC=9C=A0=EB=A3=8C=20?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EA=B8=80=EC=9E=90=20=EC=88=98?= =?UTF-8?q?=EB=A5=BC=20=EA=B8=B0=EC=A4=80=EC=9C=BC=EB=A1=9C=20=EC=9E=90?= =?UTF-8?q?=EB=A5=BC=20=EB=95=8C=20offsetByCodePoints=EB=A5=BC=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EC=97=AC=20=EC=9C=A0=EB=8B=88=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=BD=94=EB=93=9C=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20?= =?UTF-8?q?=EA=B8=B0=EC=A4=80=EC=9C=BC=EB=A1=9C=20=EB=AC=B8=EC=9E=90?= =?UTF-8?q?=EC=97=B4=EC=9D=98=20length=EB=A7=8C=ED=81=BC=EC=9D=98=20?= =?UTF-8?q?=EB=81=9D=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=EB=A5=BC=20=EA=B3=84?= =?UTF-8?q?=EC=82=B0=ED=95=98=EC=97=AC=20=EC=9D=B4=EB=AA=A8=ED=8B=B0?= =?UTF-8?q?=EC=BD=98=EC=9D=B4=20=EC=9E=98=EB=A0=A4=EC=84=9C=20=EC=A0=95?= =?UTF-8?q?=EC=83=81=EC=A0=81=EC=9C=BC=EB=A1=9C=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=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, 4 insertions(+), 2 deletions(-) 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 6056e10..1e125f8 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 @@ -40,9 +40,11 @@ data class SelectCommunityPostResponse @QueryProjection constructor( content } else { if (content.length > 15) { - content.substring(0, 15).plus("...") + val endIndex = content.offsetByCodePoints(0, 15) + content.substring(0, endIndex).plus("...") } else { - content.substring(0, content.length / 2).plus("...") + val endIndex = content.offsetByCodePoints(0, content.length / 2) + content.substring(0, endIndex).plus("...") } } } else {