diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/main/AudioContentMainService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/main/AudioContentMainService.kt index 8928a44..e1d3031 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/main/AudioContentMainService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/main/AudioContentMainService.kt @@ -28,6 +28,17 @@ class AudioContentMainService( @Cacheable(cacheNames = ["default"], key = "'themeList:' + ':' + #isAdult") fun getThemeList(isAdult: Boolean): List { return audioContentThemeRepository.getActiveThemeOfContent(isAdult = isAdult) + .filter { + it != "오디오북" && + it != "모닝콜" && + it != "알람" && + it != "슬립콜" && + it != "다시듣기" && + it != "ASMR" && + it != "릴레이" && + it != "챌린지" && + it != "자기소개" + } } @Transactional(readOnly = true) @@ -62,8 +73,19 @@ class AudioContentMainService( pageable: Pageable ): GetNewContentAllResponse { val isAdult = member.auth != null && isAdultContentVisible - val themeList = if (theme.isBlank() || theme.trim() == "전체") { + val themeList = if (theme.isBlank()) { audioContentThemeRepository.getActiveThemeOfContent(isAdult = isAdult) + .filter { + it != "오디오북" && + it != "모닝콜" && + it != "알람" && + it != "슬립콜" && + it != "다시듣기" && + it != "ASMR" && + it != "릴레이" && + it != "챌린지" && + it != "자기소개" + } } else { listOf(theme) }