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:
strawberry 2023-12-25 20:05:28 -05:00 committed by June
parent d56e76c23e
commit 3723d37b14

View file

@ -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",
));
};