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 cd426d6..eeae41e 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 @@ -99,7 +99,10 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact val memberSubQuery = queryFactory .select(creatorFollowing.creator.id) .from(creatorFollowing) - .where(creatorFollowing.member.id.eq(memberId)) + .where( + creatorFollowing.member.id.eq(memberId) + .and(creatorFollowing.isActive.isTrue) + ) where = where.and( creatorCommunity.member.id.`in`(memberSubQuery) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt index 60ef7c4..b44dc0c 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt @@ -384,6 +384,12 @@ class CreatorCommunityService( return postList .asSequence() + .filter { + !blockMemberRepository.isBlocked( + blockedMemberId = memberId, + memberId = it.member!!.id!! + ) + } .map { val isLike = likeRepository.findByPostIdAndMemberId(postId = it.id!!, memberId = memberId)?.isActive ?: false