Fixed a bug where opening private pastas would crash MicroBin

This commit is contained in:
Daniel Szabo 2022-06-03 18:11:14 +01:00
parent 4cc737731a
commit 35d4df2cb8
2 changed files with 2 additions and 4 deletions

View file

@ -23,8 +23,6 @@ pub async fn list(data: web::Data<AppState>) -> HttpResponse {
let mut pastas = data.pastas.lock().unwrap();
pastas.retain(|p| !p.private);
remove_expired(&mut pastas);
HttpResponse::Found().content_type("text/html").body(