콘텐츠 상세, 팔로잉 리스트, 시리즈 상세 API
- 알림과 팔로우 상태값 추가
This commit is contained in:
@@ -450,8 +450,10 @@ class AudioContentService(
|
||||
val creator = explorerQueryRepository.getMember(creatorId)
|
||||
?: throw SodaException("없는 사용자 입니다.")
|
||||
|
||||
val notificationUserIds = explorerQueryRepository.getNotificationUserIds(creatorId)
|
||||
val isFollowing = notificationUserIds.contains(member.id)
|
||||
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
|
||||
creatorId = creatorId,
|
||||
memberId = member.id!!
|
||||
)
|
||||
|
||||
// 구매 여부 확인
|
||||
val isExistsBundleAudioContent = bundleAudioContentList
|
||||
@@ -640,7 +642,9 @@ class AudioContentService(
|
||||
} else {
|
||||
"$coverImageHost/profile/default-profile.png"
|
||||
},
|
||||
isFollowing = isFollowing
|
||||
isFollowing = creatorFollowing?.isFollow ?: false,
|
||||
isFollow = creatorFollowing?.isFollow ?: false,
|
||||
isNotify = creatorFollowing?.isNotify ?: false
|
||||
)
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user