diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 16:15:19 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 16:15:19 -0500 |
commit | ecb815043a2dc4cb453f620eb30598223de74d9a (patch) | |
tree | 50a5bccc85056389fca1f8df79ab151e0259bc77 /src/api/posts.rs | |
parent | dont show load posts button if no posts (diff) | |
download | xssbook-ecb815043a2dc4cb453f620eb30598223de74d9a.tar.gz xssbook-ecb815043a2dc4cb453f620eb30598223de74d9a.tar.bz2 xssbook-ecb815043a2dc4cb453f620eb30598223de74d9a.zip |
api docs
Diffstat (limited to 'src/api/posts.rs')
-rw-r--r-- | src/api/posts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/posts.rs b/src/api/posts.rs index d85fb98..6aa074f 100644 --- a/src/api/posts.rs +++ b/src/api/posts.rs @@ -119,7 +119,7 @@ async fn comment( Json(body): Json<PostCommentRequest>, ) -> Response { let Ok(mut post) = Post::from_post_id(body.post_id) else { - return ResponseCode::InternalServerError.text("Failed to fetch posts") + return ResponseCode::InternalServerError.text("Failed to add comment") }; if let Err(err) = post.comment(user.user_id, body.content) { |