feat(spam): Introduce checking new accounts, events & comments for spam with the help of Akismet

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-01-31 19:35:29 +01:00
parent 1db5c4ae2d
commit 317a3434b2
83 changed files with 7186 additions and 2394 deletions

View File

@@ -366,6 +366,7 @@ export const FEATURES = gql`
features {
groups
eventCreation
antispam
}
}
}

View File

@@ -116,8 +116,16 @@ export const CREATE_REPORT = gql`
`;
export const UPDATE_REPORT = gql`
mutation UpdateReport($reportId: ID!, $status: ReportStatus!) {
updateReportStatus(reportId: $reportId, status: $status) {
mutation UpdateReport(
$reportId: ID!
$status: ReportStatus!
$antispamFeedback: AntiSpamFeedback
) {
updateReportStatus(
reportId: $reportId
status: $status
antispamFeedback: $antispamFeedback
) {
...ReportFragment
}
}