Join alias: /join/company and /join/top place partners under member #1 (the company position)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-12 12:32:26 -05:00
parent c2402c4e0e
commit d6b85f0ce9
+4 -1
View File
@@ -258,6 +258,7 @@ async function handleUpload(req, res, who) {
return json(res, 200, { url: '/uploads/' + name, type: isVideo ? 'video' : 'image' });
}
// lead-capture page hooks (og tags + copy live in public/assets/join.js too)
const JOIN_ALIASES = { company: 'martbost', top: 'martbost' }; // neutral partner links -> the top position
const JOIN_ANGLES = {
// legacy bridge pages (/from/<brand>): former members of Marty's closed EvolutionScript sites
'fw-adv': { t: 'Your next ad budget pays you back.', d: 'Faucet Wave closed. InstantAdPay was built for the people who bought ads there: packages from $5, seven formats, every package in your line paid out on Polygon in the same transaction. Welcome-back credits waiting.', url: 'https://instantadpay.com/from/faucetwave?seg=advertiser' },
@@ -629,7 +630,9 @@ const server = http.createServer(async (req, res) => {
if (m && (req.method === 'GET' || req.method === 'HEAD')) {
// lead-capture page: email first, wallet later. ?v=<angle> picks the hook
// copy and is remembered so the account records which angle converted.
const tok = m[1].toLowerCase();
// partner placement: instantadpay.com/join/company (or /top) places the visitor directly under
// member #1, the company position, with no sponsor in between (Marty, 2026-09-12 partner kit)
const tok = JOIN_ALIASES[m[1].toLowerCase()] || m[1].toLowerCase();
const cookies = parseCookies(req);
const angle = String(u.searchParams.get('v') || '').toLowerCase();
const ang = JOIN_ANGLES[angle] || null;