Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new rejection reasons #4409

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add updated reasons
  • Loading branch information
marcushaddon committed Nov 20, 2023
commit 1afaa491fc5053d1b7522ef512ccc25506ff8267
Original file line number Diff line number Diff line change
@@ -35,6 +35,8 @@ const Reasons: FunctionComponent<Props> = ({
onCode,
onAddExplanation,
}) => {
/* eslint-disable */
console.log({ GQLREJECTION_REASON_CODE })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove?

return (
<>
<Localized id="common-moderationReason-reason">
8 changes: 8 additions & 0 deletions locales/en-US/common.ftl
Original file line number Diff line number Diff line change
@@ -42,6 +42,14 @@ common-moderationReason-rejectionReason-BANNED_WORD =
Banned word
common-moderationReason-rejectionReason-AD =
Ad
common-moderationReason-rejectionReason-HARASSMENT_BULLYING =
Harassmen / bullying
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo Harassmen --> Harassment

common-moderationReason-rejectionReason-MISINFORMATION =
Minsinformation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo Minsinformation --> Misinformation

common-moderationReason-rejectionReason-HATE_SPEECH =
Hate speech
common-moderationReason-rejectionReason-IRRELEVANT_CONTENT =
Irrelevant content
common-moderationReason-reason-moreReasons =
+ More reasons
common-moderationReason-rejectionReason-OTHER =
20 changes: 20 additions & 0 deletions server/src/core/server/graph/schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -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.
"""