커뮤니티 게시물
- 구매하지 않은 유료게시물은 15글자까지만 보이도록 수정 - 15글자가 넘지 않는 글은 절반만 보이도록 수정
This commit is contained in:
parent
fc3b62ee37
commit
0ea985178e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue