diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-29 17:06:23 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-29 17:06:23 +0200 |
commit | 212a0f23bc894faf88e159560c113f504349cc05 (patch) | |
tree | ee2ff0ff3b185d1874eb0e8fc4b75f1badf659b8 /server/src/ui/mod.rs | |
parent | f73aa32549743b2967160d38c1622199c41524a4 (diff) | |
download | jellything-212a0f23bc894faf88e159560c113f504349cc05.tar jellything-212a0f23bc894faf88e159560c113f504349cc05.tar.bz2 jellything-212a0f23bc894faf88e159560c113f504349cc05.tar.zst |
comiles again but still many logic holes
Diffstat (limited to 'server/src/ui/mod.rs')
-rw-r--r-- | server/src/ui/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/ui/mod.rs b/server/src/ui/mod.rs index f59118e..17a8b6f 100644 --- a/server/src/ui/mod.rs +++ b/server/src/ui/mod.rs @@ -3,7 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ -use crate::locale::AcceptLanguage; +use crate::{helper::A, locale::AcceptLanguage}; use error::MyResult; use home::rocket_uri_macro_r_home; use jellybase::CONF; @@ -36,7 +36,7 @@ pub mod style; #[get("/")] pub async fn r_index( lang: AcceptLanguage, - sess: Option<Session>, + sess: Option<A<Session>>, ) -> MyResult<Either<Redirect, RawHtml<String>>> { let AcceptLanguage(lang) = lang; if sess.is_some() { |