commit 4ec250707310da952c1c6cf9499ab8f8ce8d1136
parent ab65d7989b0a51c72412b5023d8ca71daade0a1f
Author: BlackDex <black.dex@gmail.com>
Date: Mon, 17 Jul 2023 15:36:54 +0200
Remove debug code during attachment download
There was some debug code during attachment downloads.
This produces extra logs not needed or even wanted.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/web.rs b/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;
}