From 3388bb42830152c1b8161b898c245bf49dfe195e Mon Sep 17 00:00:00 2001 From: Klaus Date: Wed, 19 Feb 2025 19:12:11 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=A1=B4=20=EC=BD=98=ED=85=90?= =?UTF-8?q?=EC=B8=A0=20=EB=A9=94=EC=9D=B8=20-=20=EC=83=88=EB=A1=9C?= =?UTF-8?q?=EC=9A=B4=20=EC=BD=98=ED=85=90=EC=B8=A0=20-=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=20=ED=85=8C=EB=A7=88=EB=A5=BC=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=EC=8B=9C=20=EB=8D=B0=EC=9D=B4=ED=84=B0=EA=B0=80=20=EB=82=98?= =?UTF-8?q?=EC=98=A4=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/main/AudioContentMainService.kt | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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) }