From ec472e6463539f22077510daacdc141cec3dc3cd Mon Sep 17 00:00:00 2001 From: hyxklee Date: Sun, 10 Nov 2024 23:29:05 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20replyTo=20=ED=95=AD=EB=AA=A9=20?= =?UTF-8?q?=EC=A3=BC=EC=84=9D=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/leets/X/domain/post/dto/mapper/PostMapper.java | 4 ++-- .../X/domain/post/dto/response/ParentPostResponseDto.java | 2 +- .../com/leets/X/domain/post/dto/response/PostResponseDto.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/leets/X/domain/post/dto/mapper/PostMapper.java b/src/main/java/com/leets/X/domain/post/dto/mapper/PostMapper.java index 46b43b4..8e553f1 100644 --- a/src/main/java/com/leets/X/domain/post/dto/mapper/PostMapper.java +++ b/src/main/java/com/leets/X/domain/post/dto/mapper/PostMapper.java @@ -28,7 +28,7 @@ public PostResponseDto toPostResponseDto(Post post, User user, LikeRepository li .isLikedByUser(isLikedByUser(post, user, likeRepository)) .postType(postType) .myPost(isMyPost(post, user)) - .replyTo(getCustomId(post)) +// .replyTo(getCustomId(post)) .images(toImageResponse(post)) .replies(toReplies(post.getReplies(), user, likeRepository, postType)) .build(); @@ -47,7 +47,7 @@ public ParentPostResponseDto toParentPostResponseDto(Post post, User user, LikeR .repostingUserId(repostingUserId) .postType(postType) .myPost(isMyPost(post, user)) - .replyTo(getCustomId(post)) +// .replyTo(getCustomId(post)) .images(toImageResponse(post)) .build(); } diff --git a/src/main/java/com/leets/X/domain/post/dto/response/ParentPostResponseDto.java b/src/main/java/com/leets/X/domain/post/dto/response/ParentPostResponseDto.java index f7103d9..37ac13d 100644 --- a/src/main/java/com/leets/X/domain/post/dto/response/ParentPostResponseDto.java +++ b/src/main/java/com/leets/X/domain/post/dto/response/ParentPostResponseDto.java @@ -21,7 +21,7 @@ public record ParentPostResponseDto( Type postType, Boolean myPost, Boolean isLikedByUser, - String replyTo, +// String replyTo, List images ) { diff --git a/src/main/java/com/leets/X/domain/post/dto/response/PostResponseDto.java b/src/main/java/com/leets/X/domain/post/dto/response/PostResponseDto.java index d45b35e..45dea72 100644 --- a/src/main/java/com/leets/X/domain/post/dto/response/PostResponseDto.java +++ b/src/main/java/com/leets/X/domain/post/dto/response/PostResponseDto.java @@ -21,7 +21,7 @@ public record PostResponseDto( Boolean isLikedByUser, // 좋아요 여부 확인 Type postType, Boolean myPost, - String replyTo, +// String replyTo, List images, List replies ) {