mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 16:26: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 mut n = note.into_inner();
|
||||||
let id = generate_id();
|
let id = generate_id();
|
||||||
let bad_req = HttpResponse::BadRequest().finish();
|
let bad_req = HttpResponse::BadRequest().finish();
|
||||||
if n.contents.chars().count() > 8192 {
|
|
||||||
return bad_req;
|
|
||||||
}
|
|
||||||
if n.views == None && n.expiration == None {
|
if n.views == None && n.expiration == None {
|
||||||
return bad_req;
|
return bad_req;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user