콘텐츠 탭 홈

- 단편 랭킹에 19금 콘텐츠 보기 설정 적용
This commit is contained in:
Yu Sung
2025-03-19 16:37:45 +09:00
parent 23e99c443c
commit dfd12a9547
2 changed files with 13 additions and 3 deletions

View File

@@ -148,7 +148,15 @@ final class ContentRepository {
}
func getContentRanking(page: Int, size: Int, sortType: String = "매출") -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentRanking(page: page, size: size, sortType: sortType))
return api.requestPublisher(
.getContentRanking(
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
page: page,
size: size,
sortType: sortType
)
)
}
func pinContent(contentId: Int) -> AnyPublisher<Response, MoyaError> {