Referral card counts only genuine PolHunter referrals

brought / brought today now count members who are new to InstantAdPay AND
came through a PolHunter link. Others on the sponsor's line (joined before
the mission, or through another door such as the FaucetWave welcome-back
page) get one plain note instead of inflating the numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-26 16:39:03 -05:00
parent 469cbf69a5
commit 0ff79b2d60
3 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -49,6 +49,6 @@
<footer class="foot">Rewards are for completed missions, not income. The daily pool is limited; when it is spent, claims close until midnight Central. Cryptocurrency involves risk of loss.</footer>
</div>
<div class="modal" id="shareModal" hidden><div class="modal-card"><button class="modal-x" id="shareClose" type="button" aria-label="Close">×</button><div id="shareBody"></div></div></div>
<script src="/app.js?v=20"></script>
<script src="/app.js?v=21"></script>
</body>
</html>
+3 -2
View File
@@ -52,7 +52,7 @@
const rf = board.referral; if (!rf || !rf.on) return '';
const link = (board.share && board.share.link) || '';
const today = rf.broughtToday, total = rf.brought;
const people = (rf.people || []).slice(0, 5).map(p =>
const people = (rf.people || []).filter(p => p.isNew).slice(0, 5).map(p =>
'<div class="ref-row"><span>' + esc(p.name) + '</span><span class="ref-state">' + esc(p.state) + '</span></div>').join('');
return '<div class="card ref-card">'
+ '<span class="tag gold">Best paid</span>'
@@ -64,8 +64,9 @@
+ (rf.firstBonusPol ? '<p class="ref-bonus">\u{1F947} <b>' + rf.firstBonusPol + ' POL bonus, still unclaimed.</b> It goes to the first hunter who brings someone all the way through. Nobody has yet.</p>' : '')
+ '<div class="codebox"><input id="refLink" readonly value="' + esc(link) + '"><button class="btn pol" id="refCopy">Copy</button></div>'
+ '<p style="margin-top:10px"><span class="range">' + today + ' brought today</span> '
+ '<span style="color:var(--dim);font-size:12px">· ' + total + ' all time, ' + (rf.broughtNew || 0) + ' of them new · ' + rf.earnedPol + ' POL earned</span></p>'
+ '<span style="color:var(--dim);font-size:12px">· ' + total + ' all time · ' + rf.earnedPol + ' POL earned</span></p>'
+ (people ? '<div class="ref-list">' + people + '</div>' : '<p style="color:var(--dim);font-size:12px;margin-top:10px">Nobody yet. One message is all it takes.</p>')
+ (rf.otherSponsored ? '<p style="color:var(--dim);font-size:12px;margin-top:8px">' + rf.otherSponsored + ' other ' + (rf.otherSponsored === 1 ? 'member' : 'members') + ' on your InstantAdPay line ' + (rf.otherSponsored === 1 ? 'is' : 'are') + ' not counted here: they joined before this mission or came in another way, not through your PolHunter link.</p>' : '')
+ '<div class="ref-watch"><button class="btn ghost sm" type="button" id="refPlay">▶ Watch: how it works (46s)</button></div>'
+ '</div>';
}