summaryrefslogtreecommitdiff
path: root/src/api/posts.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-09-24 00:47:22 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-09-24 00:47:22 -0400
commitbe461e9c2a7534134e7f682427f584bc22a558f9 (patch)
treee7d42bfe41e15e3cfc07f0ab553aed42fd72e2b1 /src/api/posts.rs
parentMerge pull request 'dms are cool' (#1) from dev into main (diff)
downloadxssbook-be461e9c2a7534134e7f682427f584bc22a558f9.tar.gz
xssbook-be461e9c2a7534134e7f682427f584bc22a558f9.tar.bz2
xssbook-be461e9c2a7534134e7f682427f584bc22a558f9.zip
thiccer
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(())
}