Skip to content

Commit

Permalink
Merge pull request #4604 from coralproject/fix/CORL-3136-fix-akismet-…
Browse files Browse the repository at this point in the history
…not-spam-submission

[CORL-3136] Fix Akismet spam/not-spam comment submissions
  • Loading branch information
tessalt committed May 6, 2024
2 parents 47be7d2 + f5921c4 commit 2aa6d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/src/core/server/stacks/approveComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const approveComment = async (
if (
revision &&
tenant.integrations.akismet.enabled &&
(revision.actionCounts.COMMENT_REPORTED_SPAM > 0 ||
revision.actionCounts.COMMENT_DETECTED_SPAM > 0)
(revision.actionCounts.FLAG__COMMENT_REPORTED_SPAM > 0 ||
revision.actionCounts.FLAG__COMMENT_DETECTED_SPAM > 0)
) {
await submitCommentAsNotSpam(mongo, tenant, result.before, request);
}
Expand Down
4 changes: 2 additions & 2 deletions server/src/core/server/stacks/rejectComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ const rejectComment = async (
if (
revision &&
tenant.integrations.akismet.enabled &&
(revision.actionCounts.COMMENT_REPORTED_SPAM > 0 ||
revision.actionCounts.COMMENT_DETECTED_SPAM > 0)
(revision.actionCounts.FLAG__COMMENT_REPORTED_SPAM > 0 ||
revision.actionCounts.FLAG__COMMENT_DETECTED_SPAM > 0)
) {
await submitCommentAsSpam(mongo, tenant, result.before, request);
}
Expand Down

0 comments on commit 2aa6d42

Please sign in to comment.