fork of indigo with slightly nicer lexgen

:bug: Avoid ack if review is closed

Changed files
+4 -1
automod
engine
+4 -1
automod/engine/persist.go
··· 295 295 } 296 296 newTags = dedupeTagActions(newTags, existingTags) 297 297 newEscalation = newEscalation && hasSubjectStatus && *rv.Moderation.SubjectStatus.ReviewState != "tools.ozone.moderation.defs#reviewEscalate" 298 - newAcknowledge = newAcknowledge && hasSubjectStatus && *rv.Moderation.SubjectStatus.ReviewState != "tools.ozone.moderation.defs#reviewNone" 298 + newAcknowledge = newAcknowledge && hasSubjectStatus && *rv.Moderation.SubjectStatus.ReviewState != "tools.ozone.moderation.defs#reviewNone" && *rv.Moderation.SubjectStatus.ReviewState != "tools.ozone.moderation.defs#reviewClosed" 299 299 } 300 300 } 301 301 ··· 447 447 if err != nil { 448 448 c.Logger.Error("failed to execute record takedown", "err", err) 449 449 } 450 + 451 + // we don't want to escalate if there is a takedown 452 + newEscalation = false 450 453 } 451 454 452 455 if newEscalation {