summaryrefslogtreecommitdiff
path: root/src/api/posts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/posts.rs')
-rw-r--r--src/api/posts.rs2
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) {