Skip to content

Commit

Permalink
Don't set cfm if disabled comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mdirolf committed May 13, 2024
1 parent b16c0ea commit e67b623
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/lib/puzzleUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,13 @@ async function updateTagsIfNeeded(puzzleId: string, dbpuz: DBPuzzleT) {
}
}

/* Check if a puzzle is "ready for moderation". For right now this means it (a) has any (non-author) comments or (b) has any likes, or (c) was constructed by a patron. */
/* Check if a puzzle is "ready for moderation".
*
* For right now this means it has comments enabled and (a) has any (non-author)
* comments or (b) has any likes, or (c) was constructed by a patron. */
async function updateRfmIfNeeded(puzzleId: string, dbpuz: DBPuzzleT) {
if (dbpuz.rfm || dbpuz.m) {
// Don't set rfm if puzzle has comments disabled or is already moderated
if (dbpuz.no_cs || dbpuz.rfm || dbpuz.m) {
return;
}
if (
Expand Down

0 comments on commit e67b623

Please sign in to comment.