From 14b1ff79e0d3ece496306d9d7bcdade7e842a1fb Mon Sep 17 00:00:00 2001 From: Emma Alexia Date: Sun, 29 Jun 2025 09:37:41 -0400 Subject: [PATCH] Fix empty collections being shown on user pages (#3864) Originally changed in #3408 but didn't address the full issue. --- apps/labrinth/src/auth/checks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/labrinth/src/auth/checks.rs b/apps/labrinth/src/auth/checks.rs index 9a1c74f36..7cb644384 100644 --- a/apps/labrinth/src/auth/checks.rs +++ b/apps/labrinth/src/auth/checks.rs @@ -336,7 +336,7 @@ pub async fn filter_visible_collections( let mut check_collections = Vec::new(); for collection in collections { - if !collection.status.is_hidden() + if (!collection.status.is_hidden() && !collection.projects.is_empty()) || user_option.as_ref().is_some_and(|x| x.role.is_mod()) { return_collections.push(collection.into());