diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt index 2ae3834..49e22a7 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt @@ -49,12 +49,13 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact isAdult: Boolean ): List { var where = creatorCommunity.isActive.isTrue - .or(useCan.communityPost.isNotNull) if (!isAdult) { where = where.and(creatorCommunity.isAdult.isFalse) } + where = where.or(useCan.communityPost.isNotNull) + return queryFactory .select( QSelectCommunityPostResponse(