크리에이터 커뮤니티 #102
|
@ -149,15 +149,19 @@ class CreatorCommunityService(
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
val commentList = commentRepository.findByPostId(
|
val commentList = if (it.isCommentAvailable) {
|
||||||
|
commentRepository.findByPostId(
|
||||||
cloudFrontHost = imageHost,
|
cloudFrontHost = imageHost,
|
||||||
timezone = timezone,
|
timezone = timezone,
|
||||||
id = it.id!!,
|
id = it.id!!,
|
||||||
offset = 0,
|
offset = 0,
|
||||||
limit = 1
|
limit = 1
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
listOf()
|
||||||
|
}
|
||||||
|
|
||||||
val firstComment = if (commentList.isNotEmpty()) {
|
val firstComment = if (it.isCommentAvailable && commentList.isNotEmpty()) {
|
||||||
commentList[0]
|
commentList[0]
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
@ -206,15 +210,19 @@ class CreatorCommunityService(
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
val commentList = commentRepository.findByPostId(
|
val commentList = if (post.isCommentAvailable) {
|
||||||
|
commentRepository.findByPostId(
|
||||||
cloudFrontHost = imageHost,
|
cloudFrontHost = imageHost,
|
||||||
timezone = timezone,
|
timezone = timezone,
|
||||||
id = post.id!!,
|
id = post.id!!,
|
||||||
offset = 0,
|
offset = 0,
|
||||||
limit = 1
|
limit = 1
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
listOf()
|
||||||
|
}
|
||||||
|
|
||||||
val firstComment = if (commentList.isNotEmpty()) {
|
val firstComment = if (post.isCommentAvailable && commentList.isNotEmpty()) {
|
||||||
commentList[0]
|
commentList[0]
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
@ -374,15 +382,19 @@ class CreatorCommunityService(
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
val commentList = commentRepository.findByPostId(
|
val commentList = if (it.isCommentAvailable) {
|
||||||
|
commentRepository.findByPostId(
|
||||||
cloudFrontHost = imageHost,
|
cloudFrontHost = imageHost,
|
||||||
timezone = timezone,
|
timezone = timezone,
|
||||||
id = it.id!!,
|
id = it.id!!,
|
||||||
offset = 0,
|
offset = 0,
|
||||||
limit = 1
|
limit = 1
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
listOf()
|
||||||
|
}
|
||||||
|
|
||||||
val firstComment = if (commentList.isNotEmpty()) {
|
val firstComment = if (it.isCommentAvailable && commentList.isNotEmpty()) {
|
||||||
commentList[0]
|
commentList[0]
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
|
Loading…
Reference in New Issue