From 1534bb6d8f88d83c1ce9c89d007af04dcc3291f1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 2 Feb 2025 00:25:45 +0100 Subject: node visibility --- server/src/routes/ui/home.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/src/routes/ui/home.rs') diff --git a/server/src/routes/ui/home.rs b/server/src/routes/ui/home.rs index 321d184..1a4f20a 100644 --- a/server/src/routes/ui/home.rs +++ b/server/src/routes/ui/home.rs @@ -15,7 +15,7 @@ use crate::{ use anyhow::Context; use chrono::{Datelike, Utc}; use jellybase::CONF; -use jellycommon::{user::WatchedState, NodeID, NodeKind, Rating}; +use jellycommon::{user::WatchedState, NodeID, NodeKind, Rating, Visibility}; use rocket::{get, State}; use tokio::fs::read_to_string; @@ -45,8 +45,8 @@ pub fn r_home(sess: Session, db: &State) -> MyResult { items.retain(|(n, _)| { matches!( n.kind, - Some(NodeKind::Video | NodeKind::Movie | NodeKind::Episode | NodeKind::Music) - ) + NodeKind::Video | NodeKind::Movie | NodeKind::Episode | NodeKind::Music + ) && matches!(n.visibility, Visibility::Visible) }); let random = (0..16) -- cgit v1.2.3-70-g09d2