Partner endpoint for DownlineHydra tracked program links (Marty 2026-11-15): POST /api/partner/dh/links, net.v1-signed with NETWORK_SSO_SECRET. op ensure makes or updates one link per program on the member's own account (by email, else network username), tagged with a new 'DownlineHydra' network source and the program id as sub-id (?s1=&placement=), clean link host from domains.hosts(); op stats answers clicks per program. rotator.ensurePartner / partnerStats; catalog template downlinehydra; NET_SRC dh. qa/partner-dhlinks.test.mjs 13/13, partner-spins 13/13, netsrc 16/16. LOCAL ONLY, not pushed or deployed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -142,7 +142,8 @@ function meta(owner) { const m = {}; for (const s of mine(owner)) m[s.id] = { na
|
||||
// carrying ?src=<site id> (iap, linkspin, dlb, vbb, stackpol, earnerscorner, or the catalog key) counts under the link owner's
|
||||
// source for that site, made from the network catalog template the first time it is needed. Only network templates qualify.
|
||||
const NET_SRC = { iap: 'instantadpay', instantadpay: 'instantadpay', linkspin: 'linkspin', dlb: 'downlinebanners', downlinebanners: 'downlinebanners',
|
||||
vbb: 'viralbannerblitz', viralbannerblitz: 'viralbannerblitz', stackpol: 'stackpol', earnerscorner: 'earnerscorner' };
|
||||
vbb: 'viralbannerblitz', viralbannerblitz: 'viralbannerblitz', stackpol: 'stackpol', earnerscorner: 'earnerscorner',
|
||||
dh: 'downlinehydra', downlinehydra: 'downlinehydra' };
|
||||
function networkTemplate(src) { const k = NET_SRC[String(src || '').trim().toLowerCase()]; const t = k ? template(k) : null; return t && t.source === 'network' ? t : null; }
|
||||
function networkSource(owner, src) {
|
||||
const t = networkTemplate(src); if (!t || !owner) return null;
|
||||
|
||||
Reference in New Issue
Block a user