summaryrefslogtreecommitdiff
path: root/src/api/posts.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/api/posts.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/posts.rs b/src/api/posts.rs
index bd7e665..6516d92 100644
--- a/src/api/posts.rs
+++ b/src/api/posts.rs
@@ -46,8 +46,8 @@ impl Check for PostCreateRequest {
Self::assert_length(
&self.content,
1,
- 500,
- "Comments must be between 1-500 characters long",
+ 5000,
+ "Posts must be between 1-5000 characters long",
)?;
Ok(())
}
@@ -246,8 +246,8 @@ impl Check for PostCommentRequest {
Self::assert_length(
&self.content,
1,
- 255,
- "Comments must be between 1-255 characters long",
+ 2000,
+ "Comments must be between 1-2000 characters long",
)?;
Ok(())
}