Compare commits
No commits in common. "105dadd7980f79148858b0e128f139c576f313eb" and "2abf2837d339aadd9c01856425c7cd150ec8683c" have entirely different histories.
105dadd798
...
2abf2837d3
|
@ -40,11 +40,9 @@ data class SelectCommunityPostResponse @QueryProjection constructor(
|
|||
content
|
||||
} else {
|
||||
if (content.length > 15) {
|
||||
val endIndex = content.offsetByCodePoints(0, 15)
|
||||
content.substring(0, endIndex).plus("...")
|
||||
content.substring(0, 15).plus("...")
|
||||
} else {
|
||||
val endIndex = content.offsetByCodePoints(0, content.length / 2)
|
||||
content.substring(0, endIndex).plus("...")
|
||||
content.substring(0, content.length / 2).plus("...")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue