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:
parent
d56e76c23e
commit
3723d37b14
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
return Err(Error::BadRequest(
|
||||||
ErrorKind::InvalidParam,
|
ErrorKind::InvalidParam,
|
||||||
"Reason too long, should be 250 characters or fewer",
|
"Reason too long, should be 500 characters or fewer",
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue