Compare commits

...

2 Commits

Author SHA1 Message Date
klaus 2abf2837d3 Merge pull request '커뮤니티 게시물' (#193) from test into main
Reviewed-on: #193
2024-06-11 12:13:47 +00:00
Klaus 0ea985178e 커뮤니티 게시물
- 구매하지 않은 유료게시물은 15글자까지만 보이도록 수정
- 15글자가 넘지 않는 글은 절반만 보이도록 수정
2024-06-11 21:07:03 +09: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 {
if (content.length > 15) {
content.substring(0, 15).plus("...")
} else {
content.substring(0, content.length / 2).plus("...")
}
}
} else {
content