Browse Source

Remove debug code during attachment download

There was some debug code during attachment downloads.
This produces extra logs not needed or even wanted.
pull/3704/head
BlackDex 2 years ago
parent
commit
4ec2507073
No known key found for this signature in database GPG Key ID: 58C80A2AA6C765E1
  1. 2
      src/api/web.rs

2
src/api/web.rs

@ -94,7 +94,7 @@ async fn web_files(p: PathBuf) -> Cached<Option<NamedFile>> {
#[get("/attachments/<uuid>/<file_id>?<token>")]
async fn attachments(uuid: SafeString, file_id: SafeString, token: String) -> Option<NamedFile> {
let Ok(claims) = dbg!(decode_file_download(&token)) else { return None };
let Ok(claims) = decode_file_download(&token) else { return None };
if claims.sub != *uuid || claims.file_id != *file_id {
return None;
}

Loading…
Cancel
Save