Site switch coachMail: 0 turns the stall-nudge mailer off (pre-launch production carries imported shell accounts that must not be nudged)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-07 16:05:18 -05:00
parent 63440f7213
commit 8b0e68fb0d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -211,6 +211,7 @@ let ticking = false;
const NUDGE_GAP = 5 * DAY;
async function nudgeTick() {
if (ticking || !mailer || !mailer.hasKey()) return { nudges: 0, digests: 0 };
if (X.siteConfig && String(X.siteConfig().coachMail || '1') === '0') return { nudges: 0, digests: 0, off: true }; // site switch: pre-launch, nobody gets a stall nudge
ticking = true;
let nudges = 0, digests = 0;
try {