fix(comment-nickname): deleted_ 로 시작하는 닉네임 접두사 노출을 제거한다

This commit is contained in:
2026-02-20 18:47:01 +09:00
parent 211eb3507c
commit c3a2ca66f8
6 changed files with 84 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import com.querydsl.core.types.dsl.Expressions
import com.querydsl.jpa.impl.JPAQueryFactory
import kr.co.vividnext.sodalive.content.QAudioContent.audioContent
import kr.co.vividnext.sodalive.content.comment.QAudioContentComment.audioContentComment
import kr.co.vividnext.sodalive.extensions.removeDeletedNicknamePrefix
import kr.co.vividnext.sodalive.fcm.PushTokenInfo
import kr.co.vividnext.sodalive.fcm.QPushToken.pushToken
import kr.co.vividnext.sodalive.fcm.QPushTokenInfo
@@ -103,8 +104,10 @@ class AudioContentCommentQueryRepositoryImpl(
.orderBy(audioContentComment.createdAt.desc())
.fetch()
.map {
it.replyCount = commentReplyCountByAudioContentCommentId(it.id)
it
it.copy(
nickname = it.nickname.removeDeletedNicknamePrefix(),
replyCount = commentReplyCountByAudioContentCommentId(it.id)
)
}
}
@@ -187,6 +190,9 @@ class AudioContentCommentQueryRepositoryImpl(
.limit(limit.toLong())
.orderBy(audioContentComment.createdAt.desc())
.fetch()
.map {
it.copy(nickname = it.nickname.removeDeletedNicknamePrefix())
}
}
override fun findPushTokenByContentIdAndCommentParentIdMyMemberId(