aboutsummaryrefslogtreecommitdiff
path: root/server/src/ui/assets.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-28 00:48:52 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-28 00:48:52 +0200
commit80d28b764c95891551e28c395783f5ff9d065743 (patch)
treef25898b1c939a939c63236ca4e8e843e81069947 /server/src/ui/assets.rs
parent335ba978dbaf203f3603a815147fd75dbf205723 (diff)
downloadjellything-80d28b764c95891551e28c395783f5ff9d065743.tar
jellything-80d28b764c95891551e28c395783f5ff9d065743.tar.bz2
jellything-80d28b764c95891551e28c395783f5ff9d065743.tar.zst
start with splitting server
Diffstat (limited to 'server/src/ui/assets.rs')
-rw-r--r--server/src/ui/assets.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/ui/assets.rs b/server/src/ui/assets.rs
index 69f6bbc..63d8525 100644
--- a/server/src/ui/assets.rs
+++ b/server/src/ui/assets.rs
@@ -3,8 +3,8 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2025 metamuffin <metamuffin.org>
*/
-use super::{error::MyResult, CacheControlFile};
-use crate::logic::session::Session;
+use super::error::MyResult;
+use crate::{helper::cache::CacheControlFile, logic::session::Session};
use anyhow::{anyhow, bail, Context};
use base64::Engine;
use jellybase::{assetfed::AssetInner, database::Database, federation::Federation, CONF};
@@ -133,9 +133,6 @@ pub async fn r_person_asset(
Ok(Redirect::permanent(rocket::uri!(r_asset(asset.0, width))))
}
-// TODO this can create "federation recursion" because track selection cannot be relied on.
-//? TODO is this still relevant?
-
#[get("/n/<id>/thumbnail?<t>&<width>")]
pub async fn r_node_thumbnail(
_session: Session,