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