Skip to content

Commit bf37371

Browse files
authored
Merge pull request #90 from Modagbul/fix/auth
fix: 게시글 댓글 삭제 여부 수정
2 parents ed4d72b + 90109d8 commit bf37371

File tree

1 file changed

+5
-3
lines changed
  • src/main/java/com/moing/backend/domain/boardComment/application/dto/response

1 file changed

+5
-3
lines changed

src/main/java/com/moing/backend/domain/boardComment/application/dto/response/CommentBlocks.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public class CommentBlocks {
2424

2525
private Boolean writerIsDeleted;
2626

27-
public void deleteMember(){
28-
this.writerNickName="(알 수 없음)";
29-
this.writerProfileImage="undef";
27+
public void deleteMember() {
28+
if (Boolean.TRUE.equals(writerIsDeleted)) {
29+
this.writerNickName = "(알 수 없음)";
30+
this.writerProfileImage = "undef";
31+
}
3032
}
3133
}

0 commit comments

Comments
 (0)