aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-23 11:02:45 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-23 11:02:45 +0200
commitd1ef44b1289ad0de08c757b3216eb226da7450d9 (patch)
tree92abcf851b4100d202e62f549fe81968f10a2189
parent808c7245e1f2c906eff53e699bbfba120fa5fb94 (diff)
downloadjellything-d1ef44b1289ad0de08c757b3216eb226da7450d9.tar
jellything-d1ef44b1289ad0de08c757b3216eb226da7450d9.tar.bz2
jellything-d1ef44b1289ad0de08c757b3216eb226da7450d9.tar.zst
count reduced nodes in stats
-rw-r--r--server/src/routes/ui/stats.rs2
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 {