diff --git a/backend/src/seed/seed-db.js b/backend/src/seed/seed-db.js index bacfa6281..8d93a90cf 100644 --- a/backend/src/seed/seed-db.js +++ b/backend/src/seed/seed-db.js @@ -673,7 +673,7 @@ import { gql } from '../jest/helpers' mutation: reportMutation, variables: { resourceId: 'p1', - reasonCategory: 'discrimination-etc', + reasonCategory: 'discrimination_etc', reasonDescription: 'This post is bigoted', }, }), diff --git a/cypress/integration/moderation/ReportContent.feature b/cypress/integration/moderation/ReportContent.feature index 5701841cf..4eceb4bdf 100644 --- a/cypress/integration/moderation/ReportContent.feature +++ b/cypress/integration/moderation/ReportContent.feature @@ -51,7 +51,7 @@ Feature: Report and Moderate Scenario: Review reported content Given somebody reported the following posts: | submitterEmail | resourceId | reasonCategory | reasonDescription | - | p1.submitter@example.org | p1 | discrimination-etc | Offensive content | + | p1.submitter@example.org | p1 | discrimination_etc | Offensive content | And I am logged in with a "moderator" role When I click on the avatar menu in the top right corner And I click on "Moderation" diff --git a/shared/moderation/report.js b/shared/moderation/report.js deleted file mode 100644 index 75f6a076d..000000000 --- a/shared/moderation/report.js +++ /dev/null @@ -1,13 +0,0 @@ -export const reportReasonCategoriesDatabaseList = () => { - // list see "ReasonCategory" in backend GraphQL schema file "REPORTED.gql" - return [ - 'other', // element # zero, because it is the nutral one - 'discrimination-etc', - 'pornographic-content-links', - 'glorific-trivia-of-cruel-inhuman-acts', - 'doxing', - 'intentional-intimidation-stalking-persecution', - 'advert-products-services-commercial', - 'criminal-behavior-violation-german-law', - ] -} diff --git a/webapp/components/Modal/ReportModal.vue b/webapp/components/Modal/ReportModal.vue index c0fff5abf..7c237c923 100644 --- a/webapp/components/Modal/ReportModal.vue +++ b/webapp/components/Modal/ReportModal.vue @@ -50,7 +50,6 @@