Skip to content

Commit

Permalink
Add imageUrl to mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhekim committed Nov 25, 2024
1 parent bec3fd7 commit 6829649
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public PostResponse mapToPostResponse(Post post, HttpServletRequest request) {
.likeCount(post.getLikedByUsers() == null ? 0 : post.getLikedByUsers().size())
.isLiked(currentUser != null && post.getLikedByUsers() != null && post.getLikedByUsers().contains(currentUser))
.isBookmarked(currentUser != null && post.getBookmarkedByUsers() != null && post.getBookmarkedByUsers().contains(currentUser))
.imageUrl(post.getImageUrl())
.build();
}

Expand Down

0 comments on commit 6829649

Please sign in to comment.