From 8273f04615c4c12ee6296d042c8af7271d196352 Mon Sep 17 00:00:00 2001 From: Jai A Date: Fri, 6 Sep 2024 23:35:15 -0700 Subject: [PATCH] Fix automod rejecting audio and locale packs --- src/queue/moderation.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/queue/moderation.rs b/src/queue/moderation.rs index 8e51e76d..c6c22573 100644 --- a/src/queue/moderation.rs +++ b/src/queue/moderation.rs @@ -246,7 +246,11 @@ impl AutomatedModerationQueue { mod_messages.messages.push(ModerationMessage::MissingCustomLicenseUrl { license: project.inner.license.clone() }); } - if (project.project_types.contains(&"resourcepack".to_string()) || project.project_types.contains(&"shader".to_string())) && project.gallery_items.is_empty() { + if (project.project_types.contains(&"resourcepack".to_string()) || project.project_types.contains(&"shader".to_string())) && + project.gallery_items.is_empty() && + !project.categories.contains(&"audio".to_string()) && + !project.categories.contains(&"locale".to_string()) + { mod_messages.messages.push(ModerationMessage::MissingGalleryImage); }