커뮤니티 게시물 #193

Merged
klaus merged 1 commits from test into main 2024-06-11 12:13:48 +00:00
1 changed files with 5 additions and 1 deletions

View File

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