summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/api/chat.rs4
-rw-r--r--src/api/posts.rs8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/api/chat.rs b/src/api/chat.rs
index 02bdfbd..0871d6c 100644
--- a/src/api/chat.rs
+++ b/src/api/chat.rs
@@ -307,8 +307,8 @@ impl Check for SendMessageRequest {
Self::assert_length(
&self.content,
1,
- 500,
- "Messages must be between 1-500 length"
+ 5000,
+ "Messages must be between 1-5000 length"
)?;
Ok(())
}
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(())
}