Skip to content

Commit

Permalink
revert back
Browse files Browse the repository at this point in the history
  • Loading branch information
oktayozel committed Nov 24, 2024
1 parent 8acf1d8 commit ceaab39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views_directory/postviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def get_post_details(request):
is_liked = post.liked_by.filter(id=request.user.id).exists()
is_bookmarked = Bookmark.objects.filter(user=request.user, post=post).exists()

comments = post.comments.prefetch_related('liked_by').order_by("-created_at")
comments = post.comments.all().order_by("-created_at")
comments_data = CommentSerializer(comments, many=True, context={'request': request}).data


Expand Down

0 comments on commit ceaab39

Please sign in to comment.