diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/api/live/LiveApiService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/api/live/LiveApiService.kt index bce1c34..1bc1c8a 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/api/live/LiveApiService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/api/live/LiveApiService.kt @@ -2,7 +2,6 @@ package kr.co.vividnext.sodalive.api.live import kr.co.vividnext.sodalive.content.AudioContentService import kr.co.vividnext.sodalive.content.ContentType -import kr.co.vividnext.sodalive.explorer.ExplorerQueryRepository import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.CreatorCommunityService import kr.co.vividnext.sodalive.live.recommend.LiveRecommendService import kr.co.vividnext.sodalive.live.room.LiveRoomService @@ -19,8 +18,7 @@ class LiveApiService( private val recommendService: LiveRecommendService, private val creatorCommunityService: CreatorCommunityService, - private val blockMemberRepository: BlockMemberRepository, - private val explorerQueryRepository: ExplorerQueryRepository + private val blockMemberRepository: BlockMemberRepository ) { fun fetchData( isAdultContentVisible: Boolean, @@ -53,16 +51,6 @@ class LiveApiService( val recommendLiveList = recommendService.getRecommendLive(member) val latestFinishedLiveList = liveService.getLatestFinishedLive(member) - .map { - if (memberId != null) { - it.following = explorerQueryRepository.getCreatorFollowing( - creatorId = it.memberId, - memberId = memberId - )?.isFollow ?: false - } - - it - } val replayLive = contentService.getLatestContentByTheme( theme = listOf("다시듣기"), diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetLatestFinishedLiveResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetLatestFinishedLiveResponse.kt index 5cf9322..e242ecb 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetLatestFinishedLiveResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetLatestFinishedLiveResponse.kt @@ -16,8 +16,7 @@ data class GetLatestFinishedLiveResponse( @JsonProperty("memberId") val memberId: Long, @JsonProperty("nickname") val nickname: String, @JsonProperty("profileImageUrl") val profileImageUrl: String, - @JsonProperty("timeAgo") val timeAgo: String, - @JsonProperty("following") var following: Boolean = false + @JsonProperty("timeAgo") val timeAgo: String ) { constructor(response: GetLatestFinishedLiveQueryResponse) : this( response.memberId,