From f988ef1187e4feabb981bf9bd923509e90394b29 Mon Sep 17 00:00:00 2001 From: Hong0329 Date: Tue, 26 Nov 2024 21:18:09 +0900 Subject: [PATCH] fix comment noti logic --- .../WableServer/api/comment/service/CommentCommendService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WableServer/src/main/java/com/wable/www/WableServer/api/comment/service/CommentCommendService.java b/WableServer/src/main/java/com/wable/www/WableServer/api/comment/service/CommentCommendService.java index f49c9ed..36cc495 100644 --- a/WableServer/src/main/java/com/wable/www/WableServer/api/comment/service/CommentCommendService.java +++ b/WableServer/src/main/java/com/wable/www/WableServer/api/comment/service/CommentCommendService.java @@ -364,7 +364,7 @@ public void postCommentWithParentChildComment(Long memberId, Long contentId, Com }else { //대댓글의 경우 Member parentCommentWriter = memberRepository.findMemberByIdOrThrow(commentPostRequestDtoVer2.parentCommentWriterId()); - if(!usingMember.equals(contentWritingMember)) { + if(!usingMember.equals(contentWritingMember)&&!usingMember.equals(parentCommentWriter)) { Notification notification = Notification.builder() .notificationTargetMember(parentCommentWriter) .notificationTriggerMemberId(usingMember.getId())