diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt index 84f3c33..3cd6682 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -178,11 +178,15 @@ class ExplorerService( val notificationRecipientCount = notificationUserIds.size // 후원랭킹 - val memberDonationRanking = queryRepository.getMemberDonationRanking( - creatorId, - 10, - withDonationCan = creatorId == member.id!! - ) + val memberDonationRanking = if (creatorId == member.id!! || creatorAccount.isVisibleDonationRank) { + queryRepository.getMemberDonationRanking( + creatorId, + 10, + withDonationCan = creatorId == member.id!! + ) + } else { + listOf() + } // 추천 크리에이터 val similarCreatorList = queryRepository.getSimilarCreatorList(creatorId) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 2d86b53..5661830 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -653,15 +653,19 @@ class LiveRoomService( .getNotificationUserIds(room.member!!.id!!) .contains(member.id) - val donationRankingTop3UserIds = explorerQueryRepository - .getMemberDonationRanking( - room.member!!.id!!, - 3, - withDonationCan = false - ) - .asSequence() - .map { it.userId } - .toList() + val donationRankingTop3UserIds = if (room.member!!.isVisibleDonationRank) { + explorerQueryRepository + .getMemberDonationRanking( + room.member!!.id!!, + 3, + withDonationCan = false + ) + .asSequence() + .map { it.userId } + .toList() + } else { + listOf() + } return GetRoomInfoResponse( roomId = roomId,