Skip to content

Commit fd7cecd

Browse files
authored
Merge pull request #217 from BrainPix/fix/#216/comment_profile
[FIX] 댓글 조회 시 프로필 이미지 추가 반환 (#216)
2 parents bf6d449 + 8ab3541 commit fd7cecd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/com/brainpix/post/converter/GetCommentListDtoConverter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static GetCommentListDto.Comment toComment(Comment comment, Boolean isMyC
5858
.childComments(new ArrayList<>())
5959
.createdDate(comment.getCreatedAt().toLocalDate())
6060
.isMyComment(isMyComment)
61+
.profileImageUrl(comment.getWriter().getProfileImage())
6162
.build();
6263
}
6364
}

src/main/java/com/brainpix/post/dto/GetCommentListDto.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ public static class Comment {
2525
private Long writerId; // 댓글 작성자 식별자 값
2626
private String content; // 댓글 내용
2727
private String writerName; // 댓글 작성자 이름
28-
private Long parentCommentId; // 부모 댓글 ID
28+
private String profileImageUrl; // 댓글 작성자의 프로필 이미지
2929
private LocalDate createdDate; // 댓글 작성일
30-
private List<Comment> childComments; // Q&A 목록
3130
private Boolean isMyComment; // 내 댓글인지 여부
31+
private Long parentCommentId; // 부모 댓글 ID
32+
private List<Comment> childComments; // Q&A 목록
3233
}
3334
}

0 commit comments

Comments
 (0)