aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/sort.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-13 12:00:28 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-13 12:00:28 +0200
commit489cd4d833fb106d4a5257532b340969805f3f5c (patch)
tree282e7511f0b39d825729dc015dc3e392b627815e /server/src/routes/ui/sort.rs
parent5e1bdb3d0e965f2d039ba17b3767e2a111b415f9 (diff)
downloadjellything-489cd4d833fb106d4a5257532b340969805f3f5c.tar
jellything-489cd4d833fb106d4a5257532b340969805f3f5c.tar.bz2
jellything-489cd4d833fb106d4a5257532b340969805f3f5c.tar.zst
empty top rated if there is nothing to be rated
Diffstat (limited to 'server/src/routes/ui/sort.rs')
-rw-r--r--server/src/routes/ui/sort.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/routes/ui/sort.rs b/server/src/routes/ui/sort.rs
index 4f62639..a779b15 100644
--- a/server/src/routes/ui/sort.rs
+++ b/server/src/routes/ui/sort.rs
@@ -147,7 +147,9 @@ pub fn filter_and_sort_nodes(
FilterProperty::FederationRemote => node.federated.is_some(),
FilterProperty::KindMovie => node.kind == Some(NodeKind::Movie),
FilterProperty::KindVideo => node.kind == Some(NodeKind::Video),
- FilterProperty::KindShortFormVideo => node.kind == Some(NodeKind::ShortFormVideo),
+ FilterProperty::KindShortFormVideo => {
+ node.kind == Some(NodeKind::ShortFormVideo)
+ }
FilterProperty::KindCollection => node.kind == Some(NodeKind::Collection),
FilterProperty::KindChannel => node.kind == Some(NodeKind::Channel),
FilterProperty::KindShow => node.kind == Some(NodeKind::Show),