Quiet hub accounts (Marty 2026-11-14, join one = join all): accounts the hub makes here get joinedRef 'hub', and accounts.listAll leaves out hub-made accounts that never signed in unless { shells: true }, so no mailing or sweep (updates 'all', launch week, coach, leaderboard) reaches them. hubsync/launchweek/sponsorfollow/tank-cap tests pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -470,7 +470,11 @@ async function linkWallet(email, address) {
|
||||
async function count() { return impl().count(); }
|
||||
// admin: newest-first account list, and re-pointing a member's sponsor (a
|
||||
// username, share code, or numeric member id: the same tokens join links use)
|
||||
async function listAll(limit = 500) { return impl().listAll(limit); }
|
||||
// QUIET (Marty 2026-11-14, "join one = join all"): a waiting account the network hub made here (carried, joinedRef 'hub') that has never
|
||||
// signed in is left out of every list by default, so no sweep or mailing (updates, launch week, coach, leaderboard) reaches
|
||||
// someone who never chose LinkSpin. { shells: true } includes them (spam scan, sponsor follow). Same rule as InstantAdPay's.
|
||||
const isHubShell = a => !!a && a.joinedVia === 'carried' && a.joinedRef === 'hub' && !a.lastSeen && !a.memberId; // made by hubsync.js
|
||||
async function listAll(limit = 500, opts) { if (opts && opts.shells) return impl().listAll(limit); const all = await impl().listAll(Math.max(limit, 1e7)); return all.filter(a => !isHubShell(a)).slice(0, limit); }
|
||||
async function setSponsorRef(email, ref) { return impl().setSponsorRef(normEmail(email), String(ref || '').trim().toLowerCase().slice(0, 40)).then(tap(normEmail(email))); }
|
||||
|
||||
// resolve a member's DIRECT sponsor account (the token they joined under)
|
||||
|
||||
Reference in New Issue
Block a user