From 48611374d6bbe09939e679d39bf6d5313d7bfbbb Mon Sep 17 00:00:00 2001 From: martbost Date: Wed, 23 Sep 2026 04:43:34 -0500 Subject: [PATCH] Referral card: count someone as brought on the day they joined InstantAdPay, not the day this directory first saw them The backfill stamped firstSeen at seeding time, so every hunter already on the board read as brought in today. Co-Authored-By: Claude Opus 5 --- lib/referrals.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/referrals.js b/lib/referrals.js index 21a166e..692121f 100644 --- a/lib/referrals.js +++ b/lib/referrals.js @@ -139,7 +139,9 @@ function state(member) { const paid = bountyPaidFor(x.memberId); return { name: x.username || ('#' + x.memberId), - joinedAt: x.firstSeen || null, + // when they actually joined InstantAdPay, not when this directory first noticed them: + // the backfill stamped firstSeen at seeding time and made everyone look brought-in today + joinedAt: x.joinedAt || x.firstSeen || null, finds: theirFinds.length, state: paid ? 'earning' : theirFinds.length ? 'hunting' : 'signed up, no find yet', stillNew: x.joinedAt ? (Date.now() - Number(x.joinedAt)) / 86400000 <= Number(c.refMatchDays) : false,