Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix automod rejecting audio and locale packs
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Sep 7, 2024
1 parent e57a854 commit 8273f04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/queue/moderation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8273f04

Please sign in to comment.