parent
2a3d7c9291
commit
780088eb0c
|
@ -74,7 +74,7 @@ class AudioContentMainService(
|
|||
): GetNewContentAllResponse {
|
||||
val isAdult = member.auth != null && isAdultContentVisible
|
||||
val themeList = if (theme.isBlank()) {
|
||||
audioContentThemeRepository.getActiveThemeOfContent(isAdult = isAdult)
|
||||
audioContentThemeRepository.getActiveThemeOfContent(isAdult = isAdult, isFree = isFree)
|
||||
.filter {
|
||||
it != "오디오북" &&
|
||||
it != "모닝콜" &&
|
||||
|
|
|
@ -55,9 +55,21 @@ class AudioContentMainTabFreeService(
|
|||
val recommendSeriesList = recommendSeriesRepository.getRecommendSeriesList(isAdult = isAdult)
|
||||
|
||||
val themeList = audioContentThemeRepository.getActiveThemeOfContent(isAdult = isAdult, isFree = true)
|
||||
.filter {
|
||||
it != "오디오북" &&
|
||||
it != "모닝콜" &&
|
||||
it != "알람" &&
|
||||
it != "슬립콜" &&
|
||||
it != "다시듣기" &&
|
||||
it != "ASMR" &&
|
||||
it != "릴레이" &&
|
||||
it != "챌린지" &&
|
||||
it != "자기소개"
|
||||
}
|
||||
val newFreeContentList = if (themeList.isNotEmpty()) {
|
||||
audioContentRepository.findByTheme(
|
||||
memberId = member.id!!,
|
||||
theme = themeList,
|
||||
isAdult = member.auth != null,
|
||||
contentType = ContentType.ALL,
|
||||
offset = 0,
|
||||
|
@ -140,7 +152,21 @@ class AudioContentMainTabFreeService(
|
|||
theme = if (theme.isNotBlank()) {
|
||||
listOf(theme)
|
||||
} else {
|
||||
emptyList()
|
||||
audioContentThemeRepository.getActiveThemeOfContent(
|
||||
isAdult = member.auth != null && isAdultContentVisible,
|
||||
isFree = true
|
||||
)
|
||||
.filter {
|
||||
it != "오디오북" &&
|
||||
it != "모닝콜" &&
|
||||
it != "알람" &&
|
||||
it != "슬립콜" &&
|
||||
it != "다시듣기" &&
|
||||
it != "ASMR" &&
|
||||
it != "릴레이" &&
|
||||
it != "챌린지" &&
|
||||
it != "자기소개"
|
||||
}
|
||||
},
|
||||
isAdult = member.auth != null && isAdultContentVisible,
|
||||
contentType = contentType,
|
||||
|
|
Loading…
Reference in New Issue