Merge pull request '커뮤니티 게시물' () from test into main

Reviewed-on: 
This commit is contained in:
klaus 2024-06-15 11:57:33 +00:00
commit 105dadd798
1 changed files with 4 additions and 2 deletions
src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity

View File

@ -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 {