diff --git a/src/main/java/econo/buddybridge/post/dto/PostResDto.java b/src/main/java/econo/buddybridge/post/dto/PostResDto.java index 7b37c16..29f8506 100644 --- a/src/main/java/econo/buddybridge/post/dto/PostResDto.java +++ b/src/main/java/econo/buddybridge/post/dto/PostResDto.java @@ -44,7 +44,7 @@ public PostResDto(Post post) { post.getModifiedAt(), post.getPostStatus(), post.getDisabilityType(), - post.getIsLiked() + false ); } diff --git a/src/main/java/econo/buddybridge/post/entity/Post.java b/src/main/java/econo/buddybridge/post/entity/Post.java index 4506579..a2ea0e8 100644 --- a/src/main/java/econo/buddybridge/post/entity/Post.java +++ b/src/main/java/econo/buddybridge/post/entity/Post.java @@ -62,8 +62,6 @@ public class Post extends BaseEntity { @OneToMany(mappedBy = "post", orphanRemoval = true, cascade = CascadeType.ALL) private final List comments = new ArrayList<>(); - private Boolean isLiked = false; - public void changeStatus(PostStatus status){ // 상태 변경 this.postStatus = status; } diff --git a/src/main/java/econo/buddybridge/post/repository/PostRepositoryImpl.java b/src/main/java/econo/buddybridge/post/repository/PostRepositoryImpl.java index 3eaa54d..89f34e2 100644 --- a/src/main/java/econo/buddybridge/post/repository/PostRepositoryImpl.java +++ b/src/main/java/econo/buddybridge/post/repository/PostRepositoryImpl.java @@ -66,7 +66,6 @@ public PostCustomPage findPosts(Long memberId, Integer page, Integer size, Strin buildPostDisabilityTypeExpression(disabilityType), buildPostAssistanceTypeExpression(assistanceType)) .fetchOne(); - // content, totalElements, last return new PostCustomPage(content, totalElements, content.size() < size); }