From f4b3058a5892e44de004c48a3a7cb296974a7e6a Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 18 Oct 2026 06:56:23 -0500 Subject: [PATCH] Ledger and Telegram name linked positions as ' (position)' instead of a bare member number Co-Authored-By: Claude Opus 5.5 --- accounts.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/accounts.js b/accounts.js index da19652..17aeb5b 100644 --- a/accounts.js +++ b/accounts.js @@ -146,6 +146,11 @@ const J = { const out = {}; for (const a of Object.values(this.db.byEmail)) if (a.username && a.memberId && ids.includes(a.memberId)) out[a.memberId] = a.username; + // linked positions (Qualified Start wallets) read as their owner (2026-10-18: the ledger showed "member #353") + for (const p of Object.values(this.db.positions || {})) { + if (!p.memberId || out[p.memberId] || !ids.includes(p.memberId)) continue; + const o = this.db.byEmail[p.email]; if (o && o.username) out[p.memberId] = o.username + ' (position)'; + } return out; }, async listByReferrer(refs) {