Skip to content

Commit 7b79071

Browse files
authored
refactor: 게시글 조회 응답에 댓글 deprecated 여부 포함하도록 (#599)
1 parent d1cc8c3 commit 7b79071

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/example/solidconnection/community/comment/dto/PostFindCommentResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public record PostFindCommentResponse(
1010
Long parentId,
1111
String content,
1212
Boolean isOwner,
13+
Boolean isDeleted,
1314
ZonedDateTime createdAt,
1415
ZonedDateTime updatedAt,
1516
PostFindSiteUserResponse postFindSiteUserResponse
@@ -21,6 +22,7 @@ public static PostFindCommentResponse from(Boolean isOwner, Comment comment, Sit
2122
getParentCommentId(comment),
2223
getDisplayContent(comment),
2324
isOwner,
25+
comment.isDeleted(),
2426
comment.getCreatedAt(),
2527
comment.getUpdatedAt(),
2628
getDisplaySiteUserResponse(comment, siteUser)

0 commit comments

Comments
 (0)