mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-05 17:00:39 +00:00
remove hardcoded limit
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user