mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
raise report reason limit to 500 (though spec doesnt say to limit these)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
d56e76c23e
commit
3723d37b14
1 file changed
+2
-2
@@ -31,10 +31,10 @@ pub async fn report_event_route(
|
||||
));
|
||||
};
|
||||
|
||||
if let Some(true) = body.reason.clone().map(|s| s.chars().count() > 250) {
|
||||
if let Some(true) = body.reason.clone().map(|s| s.chars().count() > 500) {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::InvalidParam,
|
||||
"Reason too long, should be 250 characters or fewer",
|
||||
"Reason too long, should be 500 characters or fewer",
|
||||
));
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user