diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-23 11:02:45 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-23 11:02:45 +0200 |
commit | d1ef44b1289ad0de08c757b3216eb226da7450d9 (patch) | |
tree | 92abcf851b4100d202e62f549fe81968f10a2189 | |
parent | 808c7245e1f2c906eff53e699bbfba120fa5fb94 (diff) | |
download | jellything-d1ef44b1289ad0de08c757b3216eb226da7450d9.tar jellything-d1ef44b1289ad0de08c757b3216eb226da7450d9.tar.bz2 jellything-d1ef44b1289ad0de08c757b3216eb226da7450d9.tar.zst |
count reduced nodes in stats
-rw-r--r-- | server/src/routes/ui/stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/routes/ui/stats.rs b/server/src/routes/ui/stats.rs index 6a3d1d2..4e4eef1 100644 --- a/server/src/routes/ui/stats.rs +++ b/server/src/routes/ui/stats.rs @@ -40,7 +40,7 @@ pub fn r_stats( ) -> Result<Either<DynLayoutPage<'_>, Json<Value>>, MyError> { let AcceptLanguage(lang) = lang; let mut items = db.list_nodes_with_udata(sess.user.name.as_str())?; - items.retain(|(n, _)| matches!(n.visibility, Visibility::Visible)); + items.retain(|(n, _)| n.visibility >= Visibility::Reduced); #[derive(Default, Serialize)] struct Bin { |