From e03a1ce69259f0be6a3750e4eee19b69fa76b960 Mon Sep 17 00:00:00 2001 From: coolbot100s <76798835+coolbot100s@users.noreply.github.com> Date: Thu, 2 Jul 2026 00:59:37 -0700 Subject: [PATCH] Apply correct behavior in edge cases --- packages/moderation/src/data/nags/core.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/moderation/src/data/nags/core.ts b/packages/moderation/src/data/nags/core.ts index 180946820d..5d9dc0d8e6 100644 --- a/packages/moderation/src/data/nags/core.ts +++ b/packages/moderation/src/data/nags/core.ts @@ -192,7 +192,10 @@ export const coreNags: Nag[] = [ }, status: 'required', shouldShow: (context: NagContext) => - context.project.license.id === 'LicenseRef-Unknown' && !context.projectV3?.minecraft_server, + (context.project.license.id === 'LicenseRef-Unknown' || + context.project.license.id === 'NOASSERTION' || + context.project.license.id === 'LicenseRef-NOASSERTION') && + !context.projectV3?.minecraft_server, link: { path: 'settings/license', title: defineMessage({ @@ -222,10 +225,12 @@ export const coreNags: Nag[] = [ }, status: 'required', shouldShow: (context: NagContext) => - context.project.license.id === 'LicenseRef-' || - ((!context.project.license.url || context.project.license.url === '') && - !context.projectV3?.minecraft_server && - context.project.license.id !== 'LicenseRef-Unknown'), + !context.projectV3?.minecraft_server && + (context.project.license.id === 'LicenseRef-' || + (context.project.license.id.search('LicenseRef-') === 0 && + (!context.project.license.url || context.project.license.url === '') && + context.project.license.id !== 'LicenseRef-Unknown' && + context.project.license.id !== 'LicenseRef-All-Rights-Reserved')), link: { path: 'settings/license', title: defineMessage({