Skip to content
Snippets Groups Projects
Commit 3723d37b authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

raise report reason limit to 500 (though spec doesnt say to limit these)

parent d56e76c2
No related branches found
No related tags found
No related merge requests found
...@@ -31,10 +31,10 @@ pub async fn report_event_route( ...@@ -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",
)); ));
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment