fix(block-member): 양방향 차단 관계의 댓글·응원·콘텐츠 노출을 차단한다
This commit is contained in:
@@ -53,6 +53,7 @@ class LiveApiService(
|
||||
val latestFinishedLiveList = liveService.getLatestFinishedLive(member)
|
||||
|
||||
val replayLive = contentService.getLatestContentByTheme(
|
||||
memberId = memberId,
|
||||
theme = listOf("다시듣기"),
|
||||
contentType = contentType,
|
||||
isFree = false,
|
||||
@@ -60,7 +61,8 @@ class LiveApiService(
|
||||
)
|
||||
.filter { content ->
|
||||
if (memberId != null) {
|
||||
!blockMemberRepository.isBlocked(blockedMemberId = memberId, memberId = content.creatorId)
|
||||
!blockMemberRepository.isBlocked(blockedMemberId = memberId, memberId = content.creatorId) &&
|
||||
!blockMemberRepository.isBlocked(blockedMemberId = content.creatorId, memberId = memberId)
|
||||
} else {
|
||||
true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user