From 1afaa491fc5053d1b7522ef512ccc25506ff8267 Mon Sep 17 00:00:00 2001 From: Marcus Haddon Date: Mon, 20 Nov 2023 10:53:28 -0800 Subject: [PATCH 1/2] add updated reasons --- .../components/ModerationReason/Reasons.tsx | 2 ++ locales/en-US/common.ftl | 8 ++++++++ .../core/server/graph/schema/schema.graphql | 20 +++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/client/src/core/client/admin/components/ModerationReason/Reasons.tsx b/client/src/core/client/admin/components/ModerationReason/Reasons.tsx index 54e4cbea7d..c71e839263 100644 --- a/client/src/core/client/admin/components/ModerationReason/Reasons.tsx +++ b/client/src/core/client/admin/components/ModerationReason/Reasons.tsx @@ -35,6 +35,8 @@ const Reasons: FunctionComponent = ({ onCode, onAddExplanation, }) => { + /* eslint-disable */ + console.log({ GQLREJECTION_REASON_CODE }) return ( <> diff --git a/locales/en-US/common.ftl b/locales/en-US/common.ftl index 327af0ab85..b1565b6cbd 100644 --- a/locales/en-US/common.ftl +++ b/locales/en-US/common.ftl @@ -42,6 +42,14 @@ common-moderationReason-rejectionReason-BANNED_WORD = Banned word common-moderationReason-rejectionReason-AD = Ad +common-moderationReason-rejectionReason-HARASSMENT_BULLYING = + Harassmen / bullying +common-moderationReason-rejectionReason-MISINFORMATION = + Minsinformation +common-moderationReason-rejectionReason-HATE_SPEECH = + Hate speech +common-moderationReason-rejectionReason-IRRELEVANT_CONTENT = + Irrelevant content common-moderationReason-reason-moreReasons = + More reasons common-moderationReason-rejectionReason-OTHER = diff --git a/server/src/core/server/graph/schema/schema.graphql b/server/src/core/server/graph/schema/schema.graphql index eeba2131d7..c2ab69385a 100644 --- a/server/src/core/server/graph/schema/schema.graphql +++ b/server/src/core/server/graph/schema/schema.graphql @@ -3418,6 +3418,26 @@ enum REJECTION_REASON_CODE { """ ILLEGAL_CONTENT + """ + HARASSMENT_BULLYING represents a rejection of a comment for being harassment or bullying. + """ + HARASSMENT_BULLYING + + """ + MISINFORMATION represents a rejection of a comment for being misinformation. + """ + MISINFORMATION + + """ + HATE_SPEECH represents a rejection of a comment for being hate speech. + """ + HATE_SPEECH + + """ + IRRELEVANT_CONTENT represents a rejection of a comment for being irrelevant to the conversation. + """ + IRRELEVANT_CONTENT + """ OTHER is reserved for reasons that arent adequately described by the other options. """ From ffb0391f9910b8c9c386a0a37f3f965957ebdeb9 Mon Sep 17 00:00:00 2001 From: Kathryn Beaty Date: Mon, 20 Nov 2023 14:07:04 -0500 Subject: [PATCH 2/2] fix typos --- .../core/client/admin/components/ModerationReason/Reasons.tsx | 2 -- locales/en-US/common.ftl | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/core/client/admin/components/ModerationReason/Reasons.tsx b/client/src/core/client/admin/components/ModerationReason/Reasons.tsx index c71e839263..54e4cbea7d 100644 --- a/client/src/core/client/admin/components/ModerationReason/Reasons.tsx +++ b/client/src/core/client/admin/components/ModerationReason/Reasons.tsx @@ -35,8 +35,6 @@ const Reasons: FunctionComponent = ({ onCode, onAddExplanation, }) => { - /* eslint-disable */ - console.log({ GQLREJECTION_REASON_CODE }) return ( <> diff --git a/locales/en-US/common.ftl b/locales/en-US/common.ftl index b1565b6cbd..84768d9e74 100644 --- a/locales/en-US/common.ftl +++ b/locales/en-US/common.ftl @@ -43,9 +43,9 @@ common-moderationReason-rejectionReason-BANNED_WORD = common-moderationReason-rejectionReason-AD = Ad common-moderationReason-rejectionReason-HARASSMENT_BULLYING = - Harassmen / bullying + Harassment / bullying common-moderationReason-rejectionReason-MISINFORMATION = - Minsinformation + Misinformation common-moderationReason-rejectionReason-HATE_SPEECH = Hate speech common-moderationReason-rejectionReason-IRRELEVANT_CONTENT =