feat(creator-community): 커뮤니티 댓글 알림 딥링크에 게시글 식별자를 포함한다
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user