Serve the original file with the main path instead of the thumbnail

This commit is contained in:
Savanni D'Gerinel 2023-10-04 13:15:16 -04:00
parent 1d89254413
commit d4a5e0f55d
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ pub async fn file(
old_etags: Option<String>,
) -> Result<Response<Vec<u8>>, 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![]),