From 7afbf1bff8236e7be3d0e2a672d0eff92c322ed9 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sun, 8 Feb 2026 22:26:34 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=EB=B0=A9=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=9D=91=EB=8B=B5=EC=97=90=20=EB=B0=A9?= =?UTF-8?q?=EC=9E=A5=20=EC=96=B8=EC=96=B4=EC=BD=94=EB=93=9C=EB=A5=BC=20?= =?UTF-8?q?=EC=A0=9C=EA=B3=B5=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 라이브방 정보 조회 응답에서 tags 필드를 제거한다. 방장이 설정한 언어를 2자리 creatorLanguageCode로 제공한다. --- .../sodalive/live/room/LiveRoomService.kt | 14 +++++++------- .../sodalive/live/room/info/GetRoomInfoResponse.kt | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 75e0bb5c..60653ff1 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -963,12 +963,12 @@ class LiveRoomService( } val menuPan = menuService.getLiveMenu(creatorId = room.member!!.id!!) - val languageTagByMemberId = buildLanguageTagMap(listOfNotNull(room.member?.id)) - - val tags = room.tags - .filter { it.tag.isActive } - .map { it.tag.tag } - .let { tags -> applyLanguageTagToRoomTags(room.member?.id, tags, languageTagByMemberId) } + val creatorLanguageCode = pushTokenRepository.findByMemberId(room.member!!.id!!) + .filterNot { it.languageCode.isNullOrBlank() } + .maxByOrNull { it.updatedAt ?: LocalDateTime.MIN } + ?.languageCode + ?.lowercase() + ?.take(2) return GetRoomInfoResponse( roomId = roomId, @@ -1007,7 +1007,7 @@ class LiveRoomService( managerList = roomInfo.managerList, donationRankingTop3UserIds = donationRankingTop3UserIds, menuPan = menuPan?.menu ?: "", - tags = tags, + creatorLanguageCode = creatorLanguageCode, isPrivateRoom = room.type == LiveRoomType.PRIVATE, password = room.password, isActiveRoulette = isActiveRoulette diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt index 37eee7df..f7c6d743 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt @@ -21,7 +21,7 @@ data class GetRoomInfoResponse( val managerList: List, val donationRankingTop3UserIds: List, val menuPan: String, - val tags: List, + val creatorLanguageCode: String?, val isPrivateRoom: Boolean = false, val password: String? = null, val isActiveRoulette: Boolean = false