From ecb815043a2dc4cb453f620eb30598223de74d9a Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 2 Feb 2023 16:15:19 -0500 Subject: api docs --- src/api/posts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/posts.rs') 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, ) -> 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) { -- cgit v1.2.3-freya