From d4a5e0f55d6743f0b5b957f2f5a4a052c6c7f403 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 4 Oct 2023 13:15:16 -0400 Subject: [PATCH] Serve the original file with the main path instead of the thumbnail --- file-service/src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-service/src/handlers.rs b/file-service/src/handlers.rs index afc0cbd..2e75bf1 100644 --- a/file-service/src/handlers.rs +++ b/file-service/src/handlers.rs @@ -68,7 +68,7 @@ pub async fn file( old_etags: Option, ) -> Result>, Error> { match app.get_file(&FileId::from(id)).await { - Ok(file) => serve_file(file.info.clone(), || file.thumbnail(), old_etags), + Ok(file) => serve_file(file.info.clone(), || file.content(), old_etags), Err(_err) => Response::builder() .status(StatusCode::NOT_FOUND) .body(vec![]),