Skip to content

Commit

Permalink
comments right order
Browse files Browse the repository at this point in the history
  • Loading branch information
Dromader2137 committed Jun 3, 2024
1 parent e2231b8 commit aa55af2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ pub async fn get_comments_from_post(post_id: i64) -> Result<impl warp::Reply, wa
ON users.user_id = comments.user_id
LEFT JOIN images ON users.pfp_id=images.image_id
WHERE comments.post_id = ?
ORDER BY comments.date DESC
";

if !check_post(&connection, post_id).await {
Expand Down

0 comments on commit aa55af2

Please sign in to comment.