From 2e0f0c5044b2696a463768a35e45966df14f728a Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 19 Mar 2026 16:34:08 +0900 Subject: [PATCH] =?UTF-8?q?fix(explorer):=20getCreatorProfile=20=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=B8=8C=20=EC=9D=91=EB=8B=B5=EC=9D=98=20coverImageUr?= =?UTF-8?q?l=EC=9D=84=20=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20=EC=9D=B4=EB=AF=B8=EC=A7=80?= =?UTF-8?q?=EB=A1=9C=20=EA=B5=90=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ExplorerQueryRepository의 LiveRoomResponse 매핑에서 커버 이미지 → 프로필 이미지로 변경 - 프로필 이미지 URL 규칙 적용: null/빈→기본 이미지, https로 시작 시 원본 유지, 상대 경로는 CloudFront 접두 - 응답 스키마/필드명은 호환성 유지를 위해 그대로 유지 --- .../sodalive/explorer/ExplorerQueryRepository.kt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt index bd0a9a1f..8182b926 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt @@ -431,10 +431,15 @@ class ExplorerQueryRepository( price = it.price, channelName = it.channelName, managerNickname = it.member!!.nickname, - coverImageUrl = if (it.coverImage!!.startsWith("https://")) { - it.coverImage!! - } else { - "$cloudFrontHost/${it.coverImage!!}" + // 기존: 라이브 방 커버 이미지를 반환 + // 변경: 크리에이터(방 매니저) 프로필 이미지를 반환 + coverImageUrl = run { + val profileImage = it.member!!.profileImage + when { + profileImage.isNullOrBlank() -> "$cloudFrontHost/profile/default-profile.png" + profileImage.startsWith("https://") -> profileImage + else -> "$cloudFrontHost/$profileImage" + } }, isReservation = reservations.isNotEmpty(), isActive = it.isActive,