diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-27 22:10:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-27 22:10:48 +0200 |
commit | 6b5fbb8c9864f370ef5daf870518f9d3c48f46c5 (patch) | |
tree | 39748593f078402ae96d1e5f30a4bd8fabb8cc86 /server/src/routes/ui/assets.rs | |
parent | 3e88163603ceefba6672635973fc9658e53f6a4a (diff) | |
download | jellything-6b5fbb8c9864f370ef5daf870518f9d3c48f46c5.tar jellything-6b5fbb8c9864f370ef5daf870518f9d3c48f46c5.tar.bz2 jellything-6b5fbb8c9864f370ef5daf870518f9d3c48f46c5.tar.zst |
error images
Diffstat (limited to 'server/src/routes/ui/assets.rs')
-rw-r--r-- | server/src/routes/ui/assets.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/routes/ui/assets.rs b/server/src/routes/ui/assets.rs index 5789685..48c569a 100644 --- a/server/src/routes/ui/assets.rs +++ b/server/src/routes/ui/assets.rs @@ -8,7 +8,7 @@ use crate::{ routes::ui::{account::session::Session, error::MyError, CacheControlFile}, }; use anyhow::{anyhow, Context}; -use jellybase::{AssetLocationExt, permission::NodePermissionExt}; +use jellybase::{permission::NodePermissionExt, AssetLocationExt}; use jellycommon::AssetLocation; use log::info; use rocket::{get, http::ContentType, FromFormField, State, UriDisplayQuery}; @@ -50,7 +50,7 @@ pub async fn r_item_assets( } }; let asset = asset.unwrap_or(AssetLocation::Assets( - PathBuf::from_str("fallback.jpeg").unwrap(), + PathBuf::from_str("fallback.avif").unwrap(), )); // fit the resolution into a finite set so the maximum cache is finite too. let width = 2usize.pow(width.unwrap_or(2048).clamp(128, 8196).ilog2()); |