remove hardcoded limit

This commit is contained in:
cupcakearmy 2021-12-20 17:42:08 +01:00
parent a0ebb97bc5
commit 8644a937d0
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

View File

@ -37,9 +37,6 @@ async fn create(note: web::Json<Note>) -> impl Responder {
let mut n = note.into_inner();
let id = generate_id();
let bad_req = HttpResponse::BadRequest().finish();
if n.contents.chars().count() > 8192 {
return bad_req;
}
if n.views == None && n.expiration == None {
return bad_req;
}