mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 08:16:28 +00:00
remove hardcoded limit
This commit is contained in:
parent
a0ebb97bc5
commit
8644a937d0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user