From 61d535707d48d769fdaf3a16ad74735c7ca136ec Mon Sep 17 00:00:00 2001 From: coolbot100s <76798835+coolbot100s@users.noreply.github.com> Date: Fri, 25 Jul 2025 00:40:06 -0700 Subject: [PATCH] Only show gallery relevancy button when relevant. --- packages/moderation/data/stages/gallery.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/moderation/data/stages/gallery.ts b/packages/moderation/data/stages/gallery.ts index 6732ad0f3..35eae3320 100644 --- a/packages/moderation/data/stages/gallery.ts +++ b/packages/moderation/data/stages/gallery.ts @@ -25,6 +25,7 @@ const gallery: Stage = { weight: 901, suggestedStatus: 'flagged', severity: 'low', + shouldShow: (project) => project.gallery && project.gallery.length > 0, message: async () => (await import('../messages/gallery/not-relevant.md?raw')).default, } as ButtonAction, ],