parent
2c4c19990a
commit
0c153aeb6a
|
@ -307,8 +307,11 @@ class ExplorerService(
|
|||
|
||||
val followerList = queryRepository.getFollowerList(creatorId, pageable.offset, pageable.pageSize.toLong())
|
||||
.map {
|
||||
val isFollow = if (it.role == MemberRole.CREATOR) {
|
||||
queryRepository.isFollow(creatorId = it.userId, memberId = member.id!!)
|
||||
val creatorFollowing = if (it.role == MemberRole.CREATOR) {
|
||||
queryRepository.getCreatorFollowing(
|
||||
creatorId = it.userId,
|
||||
memberId = member.id!!
|
||||
)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
@ -317,7 +320,8 @@ class ExplorerService(
|
|||
userId = it.userId,
|
||||
profileImage = it.profileImage,
|
||||
nickname = it.nickname,
|
||||
isFollow = isFollow
|
||||
isFollow = creatorFollowing?.isFollow ?: false,
|
||||
isNotify = creatorFollowing?.isNotify ?: false
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -9,5 +9,6 @@ data class GetFollowerListResponseItem(
|
|||
val userId: Long,
|
||||
val profileImage: String,
|
||||
val nickname: String,
|
||||
val isFollow: Boolean?
|
||||
val isFollow: Boolean?,
|
||||
val isNotify: Boolean?
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue