From 6b5fbb8c9864f370ef5daf870518f9d3c48f46c5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 27 Oct 2023 22:10:48 +0200 Subject: error images --- server/src/routes/ui/assets.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/routes/ui/assets.rs') 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()); -- cgit v1.2.3-70-g09d2