diff --git a/daepiro-api/src/main/java/com/numberone/backend/domain/conversation/service/ConversationService.java b/daepiro-api/src/main/java/com/numberone/backend/domain/conversation/service/ConversationService.java index adc1d8c..626a7e7 100644 --- a/daepiro-api/src/main/java/com/numberone/backend/domain/conversation/service/ConversationService.java +++ b/daepiro-api/src/main/java/com/numberone/backend/domain/conversation/service/ConversationService.java @@ -72,7 +72,7 @@ public void delete(Long conversationId) { private boolean checkLike(Member member, Conversation conversation) { for (ConversationLike conversationLike : conversation.getLikes()) { - if (conversationLike.getMember().equals(member)) { + if (conversationLike.getMember().getId().equals(member.getId())) { return true; } } @@ -91,14 +91,14 @@ public GetConversationResponse get(Long conversationId) { childs.add(GetConversationResponse.of( child, checkLike(member, child), - member.equals(child.getMember()), + member.getId().equals(child.getMember().getId()), new ArrayList<>() )); } return GetConversationResponse.of( conversation, checkLike(member, conversation), - member.equals(conversation.getMember()), + member.getId().equals(conversation.getMember().getId()), childs); } @@ -111,7 +111,7 @@ public GetConversationResponse getExceptChild(Long conversationId) { return GetConversationResponse.of( conversation, checkLike(member, conversation), - member.equals(conversation.getMember()), + member.getId().equals(conversation.getMember().getId()), new ArrayList<>()); }