diff --git a/lib/referrals.js b/lib/referrals.js index 667b9d4..157b9c3 100644 --- a/lib/referrals.js +++ b/lib/referrals.js @@ -222,12 +222,18 @@ function state(member) { firstBonusPol: refRows().some(p => p.ref.kind === 'first-bonus') ? 0 : Number(c.refFirstBonusPol) || 0, matchPct: Number(c.refMatchPct), matchDays: Number(c.refMatchDays), - brought: mine.length, - broughtNew: mine.filter(x => x.isNew).length, // the only ones that can ever pay - broughtToday: mine.filter(x => x.joinedAt && ctDay(x.joinedAt) === today).length, + // Only genuine PolHunter referrals count (Marty, 2026-09-26: "Otherwise the metric serves no + // purpose"). A member placed under you who joined InstantAdPay before the mission, or through + // another door (FaucetWave's welcome-back page put ahmedalbasha under #1 that morning), is not + // someone you brought, so they are never in these numbers. + brought: mine.filter(x => x.isNew).length, + broughtNew: mine.filter(x => x.isNew).length, + broughtToday: mine.filter(x => x.isNew && x.joinedAt && ctDay(x.joinedAt) === today).length, + otherSponsored: mine.filter(x => !x.isNew).length, // on your line, but not brought by PolHunter earnedPol: round4(rows.reduce((n, p) => n + p.pol, 0)), earnedTodayPol: round4(rows.filter(p => p.day === today).reduce((n, p) => n + p.pol, 0)), - people: mine.slice(0, 25), + // yours first, newest first; the rest after, so the list never leads with people who cannot pay + people: mine.slice().sort((a, b) => (b.isNew - a.isNew) || ((b.joinedAt || 0) - (a.joinedAt || 0))).slice(0, 25), pool: refPool(), }; } diff --git a/public/app.html b/public/app.html index 3924180..40ae855 100644 --- a/public/app.html +++ b/public/app.html @@ -49,6 +49,6 @@
- +