diff --git a/script/generic/status-values.ts b/script/generic/status-values.ts index 27e7f56ee..60bc7c6b1 100644 --- a/script/generic/status-values.ts +++ b/script/generic/status-values.ts @@ -2,8 +2,7 @@ const StatusValues: string[] = [ 'active', 'spam', - 'abandoned', - 'nsfw' + 'abandoned' ]; export function isValidStatusValue(value: string): boolean { diff --git a/script/tags-config.ts b/script/tags-config.ts index 1f614e88a..285e667d2 100644 --- a/script/tags-config.ts +++ b/script/tags-config.ts @@ -50,4 +50,9 @@ export const TagValues: TagDescription[] = [ name: "Privacy", description: "Privacy tokens." }, + { + id: "nsfw", + name: "NSFW", + description: "Content Not suitable for work." + }, ]; diff --git a/test/index.test.ts b/test/index.test.ts index c61a52b9a..d0da36415 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -149,7 +149,6 @@ describe("Test status, tag values", () => { test(`Test status-values`, () => { expect(isValidStatusValue("active")).toEqual(true); expect(isValidStatusValue("abandoned")).toEqual(true); - expect(isValidStatusValue("nsfw")).toEqual(true); expect(isValidStatusValue("invalidvalue")).toEqual(false); expect(isValidStatusValue("ACTIVE")).toEqual(false); expect(isValidStatusValue("")).toEqual(false);