aboutsummaryrefslogtreecommitdiff
path: root/server/src/compat
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-22 03:22:39 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-22 03:22:39 +0100
commitaa13fade6fcabf9122babac7ac812a433a81b627 (patch)
treef284f4d1502e3c75d37508ee0e8219add6c095a6 /server/src/compat
parenteb46c37ebf2453f334bac086dbf9e91837dd082b (diff)
downloadjellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar
jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar.bz2
jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar.zst
node highlight card + css cleanup
Diffstat (limited to 'server/src/compat')
-rw-r--r--server/src/compat/youtube.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/compat/youtube.rs b/server/src/compat/youtube.rs
index 9d27235..a5f540b 100644
--- a/server/src/compat/youtube.rs
+++ b/server/src/compat/youtube.rs
@@ -38,7 +38,8 @@ pub fn r_youtube_watch(ri: RequestInfo<'_>, v: &str) -> MyResult<Redirect> {
}
#[get("/channel/<id>")]
-pub fn r_youtube_channel(ri: RequestInfo<'_>, id: &str) -> MyResult<Redirect> {
+pub fn r_youtube_channel(_ri: RequestInfo<'_>, id: &str) -> MyResult<Redirect> {
+ let _ = id;
// let Some(id) = (if id.starts_with("UC") {
// get_node_by_eid(&session.0, IdentifierType::YoutubeChannel, id)?
// } else if id.starts_with("@") {
@@ -54,7 +55,8 @@ pub fn r_youtube_channel(ri: RequestInfo<'_>, id: &str) -> MyResult<Redirect> {
}
#[get("/embed/<v>")]
-pub fn r_youtube_embed(ri: RequestInfo<'_>, v: &str) -> MyResult<Redirect> {
+pub fn r_youtube_embed(_ri: RequestInfo<'_>, v: &str) -> MyResult<Redirect> {
+ let _ = v;
// if v.len() != 11 {
// Err(anyhow!("video id length incorrect"))?
// }