approver pruner: send weekly warning dmails to inactive approvers.

Send weekly warning dmails to approvers in danger of losing their
approver permissions. Don't send warnings if we're more than three weeks
away from demotion so that approvers aren't warned prematurely.
This commit is contained in:
evazion
2020-02-27 00:08:48 -06:00
parent 4b9a29743a
commit 3d410398a3
3 changed files with 24 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ module DanbooruMaintenance
def weekly
safely { UserPasswordResetNonce.prune! }
safely { TagRelationshipRetirementService.find_and_retire! }
safely { ApproverPruner.dmail_inactive_approvers! }
end
def monthly