Merge pull request '커뮤니티 게시물' (#194) from test into main
Reviewed-on: #194
This commit is contained in:
commit
105dadd798
|
@ -40,9 +40,11 @@ data class SelectCommunityPostResponse @QueryProjection constructor(
|
||||||
content
|
content
|
||||||
} else {
|
} else {
|
||||||
if (content.length > 15) {
|
if (content.length > 15) {
|
||||||
content.substring(0, 15).plus("...")
|
val endIndex = content.offsetByCodePoints(0, 15)
|
||||||
|
content.substring(0, endIndex).plus("...")
|
||||||
} else {
|
} else {
|
||||||
content.substring(0, content.length / 2).plus("...")
|
val endIndex = content.offsetByCodePoints(0, content.length / 2)
|
||||||
|
content.substring(0, endIndex).plus("...")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue