diff --git a/server/src/main/java/com/main36/pikcha/domain/post/dto/PostResponseDto.java b/server/src/main/java/com/main36/pikcha/domain/post/dto/PostResponseDto.java index a4121364..555dfab4 100644 --- a/server/src/main/java/com/main36/pikcha/domain/post/dto/PostResponseDto.java +++ b/server/src/main/java/com/main36/pikcha/domain/post/dto/PostResponseDto.java @@ -19,7 +19,8 @@ public static class Home { private Long postId; private Long memberId; private String username; - private String picture; + private String memberPicture; + private String pictureUrl; private int views; private int likes; private String postTitle; diff --git a/server/src/main/java/com/main36/pikcha/domain/post/mapper/PostMapper.java b/server/src/main/java/com/main36/pikcha/domain/post/mapper/PostMapper.java index 3428550a..5a61fb3b 100644 --- a/server/src/main/java/com/main36/pikcha/domain/post/mapper/PostMapper.java +++ b/server/src/main/java/com/main36/pikcha/domain/post/mapper/PostMapper.java @@ -66,7 +66,8 @@ default List postListToPostHomeResponseDtoList(List .postId(post.getPostId()) .memberId(post.getMember().getMemberId()) .username(post.getMember().getUsername()) - .picture(post.getMember().getPicture()) + .memberPicture(post.getMember().getPicture()) + .pictureUrl(post.getPostImages().get(0).getPostImageUrl()) .views(post.getViews()) .likes(post.getLikes()) .postTitle(post.getPostTitle()) diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml index 03c30d37..d74c444c 100644 --- a/server/src/main/resources/application.yml +++ b/server/src/main/resources/application.yml @@ -1,3 +1,3 @@ spring: profiles: - active: test + active: local