diff --git a/coach.js b/coach.js index 5dd705a..d5c957e 100644 --- a/coach.js +++ b/coach.js @@ -219,6 +219,7 @@ async function nudgeTick() { const all = await accounts.listAll(5000); for (const acct of all) { if (!acct.email || !acct.created || now - acct.created < STALL_DAYS * DAY) continue; + if (!acct.lastSeen || acct.joinedVia === 'carried' && !acct.lastSeen) continue; // never signed in here (carried-over shells from InstantAdPay): no coaching mail, ever (2026-10-11: Harvey got a nudge for a site he never joined) const c = await describe(acct, now); if (!c.stalled) continue; const R = RUNGS[c.rung]; if (!R.mail) continue; @@ -236,7 +237,7 @@ async function nudgeTick() { let lbWeek = null; try { lbWeek = X.lb ? await X.lb().view('week') : null; } catch (e) {} let tankN = 0; try { tankN = X.tank ? (await X.tank.waiting()).length : 0; } catch (e) {} for (const acct of all) { - if (!acct.email) continue; + if (!acct.email || !acct.lastSeen) continue; // weekly mail only to people who have actually signed in here const lastD = await impl().lastDigest(acct.email); if (now - lastD < 7 * DAY) continue; if (now - (acct.lastSeen || acct.created || 0) > 45 * DAY) { await impl().setDigest(acct.email, now); continue; } // gone quiet for six weeks: leave them to the nudges