fix(content-series): 차단 접근 오류 메시지 키를 분리한다
This commit is contained in:
@@ -525,7 +525,7 @@ class AudioContentService(
|
||||
?: throw SodaException(messageKey = "content.error.user_not_found")
|
||||
|
||||
if (isBlockedBetweenMembers(memberId = member.id!!, creatorId = creatorId)) {
|
||||
throw SodaException(messageKey = "content.error.invalid_content_retry")
|
||||
throw SodaException(messageKey = "content.error.blocked_access")
|
||||
}
|
||||
|
||||
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
|
||||
|
||||
@@ -247,7 +247,7 @@ class ContentSeriesService(
|
||||
val isBlocked = blockMemberRepository.isBlocked(blockedMemberId = member.id!!, memberId = series.member!!.id!!) ||
|
||||
blockMemberRepository.isBlocked(blockedMemberId = series.member!!.id!!, memberId = member.id!!)
|
||||
if (isBlocked) {
|
||||
throw SodaException(messageKey = "series.error.invalid_series_retry")
|
||||
throw SodaException(messageKey = "series.error.blocked_access")
|
||||
}
|
||||
|
||||
val creatorFollowing = explorerQueryRepository.getCreatorFollowing(
|
||||
|
||||
@@ -103,6 +103,11 @@ class SodaMessageSource {
|
||||
Lang.EN to "Access to content is restricted at %s's request.",
|
||||
Lang.JA to "%sさんの要請によりコンテンツへのアクセスが制限されています。"
|
||||
),
|
||||
"content.error.blocked_access" to mapOf(
|
||||
Lang.KO to "콘텐츠 접근이 차단되었습니다.",
|
||||
Lang.EN to "Content access is blocked.",
|
||||
Lang.JA to "コンテンツへのアクセスがブロックされました。"
|
||||
),
|
||||
"content.error.pin_available_after_open" to mapOf(
|
||||
Lang.KO to "콘텐츠 오픈 후 채널에 고정이 가능합니다.",
|
||||
Lang.EN to "You can pin it to the channel after the content is opened.",
|
||||
@@ -261,6 +266,11 @@ class SodaMessageSource {
|
||||
Lang.KO to "잘못된 시리즈 입니다.\n다시 시도해 주세요",
|
||||
Lang.EN to "Invalid series.\nPlease try again.",
|
||||
Lang.JA to "不正なシリーズです。\nもう一度お試しください。"
|
||||
),
|
||||
"series.error.blocked_access" to mapOf(
|
||||
Lang.KO to "시리즈 접근이 차단되었습니다.",
|
||||
Lang.EN to "Series access is blocked.",
|
||||
Lang.JA to "シリーズへのアクセスがブロックされました。"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user