feat(creator-community): 커뮤니티 댓글 알림 딥링크에 게시글 식별자를 포함한다

This commit is contained in:
2026-03-13 18:54:14 +09:00
parent 5b547cb73c
commit b13a9888d4
8 changed files with 252 additions and 9 deletions

View File

@@ -382,7 +382,9 @@ class CreatorCommunityService(
val post = repository.findByIdOrNull(id = postId)
?: throw SodaException(messageKey = "creator.community.invalid_post_retry")
if (isBlockedBetweenMembers(memberId = member.id!!, creatorId = post.member!!.id!!)) {
val creatorId = post.member!!.id!!
if (isBlockedBetweenMembers(memberId = member.id!!, creatorId = creatorId)) {
throw SodaException(messageKey = "creator.community.invalid_access_retry")
}
@@ -407,6 +409,22 @@ class CreatorCommunityService(
}
commentRepository.save(postComment)
if (member.id != creatorId) {
applicationEventPublisher.publishEvent(
FcmEvent(
type = FcmEventType.INDIVIDUAL,
category = PushNotificationCategory.COMMUNITY,
title = member.nickname,
messageKey = "creator.community.fcm.new_comment",
senderMemberId = member.id,
recipients = listOf(creatorId),
deepLinkValue = FcmDeepLinkValue.COMMUNITY,
deepLinkId = creatorId,
deepLinkCommentPostId = postId
)
)
}
}
@Transactional