Skip to content

Commit

Permalink
change order of moderation pipeline to ensure external phases can run
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiankistner committed Jun 5, 2024
1 parent 1df2c6e commit 0488bac
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,17 @@ export const moderationPhases: IntermediateModerationPhase[] = [
spam,
detectLinks,

// Apply any pre-existing conditions to these comments.
// If user-specific moderation is enabled, it should run before
// external phases as those won't have the required information
// about the user to decide on their own.
statusPreModerateNewCommenter,
statusPreModerate,
statusPreModerateUser,

// Run any external moderation phase that missed other filters.
external,

// If premoderation is required globally, it should act as a
// fallback in case external phases did not respond with
// a status.
statusPreModerate,
];

0 comments on commit 0488bac

Please sign in to comment.