Angle pages: each hook angle shares with its own video frame as the preview image; Share sends one message with the link inside the text (Telegram dropped the separate url)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -382,12 +382,14 @@ function serveJoinPage(res, tok, angle, ang, setCookies) {
|
||||
const url = (ang && ang.url) || (base + '/join/' + tok + (angle ? '?v=' + angle : ''));
|
||||
const title = ang ? ang.t : 'Advertise and earn. Paid on-chain, instantly.';
|
||||
const desc = ang ? ang.d : 'You are invited to InstantAdPay: real ad packages with same-transaction payouts on Polygon, every payment public. Join free by email.';
|
||||
// each hook angle previews with its own video's opening frame (Marty 2026-10-13: shared angle links all showed the generic hero)
|
||||
const ogImg = base + (['play', 'instant', 'adspend', 'free', 'ledger', 'two'].includes(angle) ? '/banners/iap-angle-' + angle + '-1200x630.jpg?v=1' : '/banners/iap-hero-1200x630.png');
|
||||
const escA = t => String(t).replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<');
|
||||
const og = '<meta property="og:type" content="website"><meta property="og:site_name" content="InstantAdPay">'
|
||||
+ '<meta property="og:title" content="' + escA(title) + '"><meta property="og:description" content="' + escA(desc) + '">'
|
||||
+ '<meta property="og:url" content="' + escA(url) + '">' // keeps ?v= so shares stay on the angle
|
||||
+ '<meta property="og:image" content="' + base + '/banners/iap-hero-1200x630.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630">'
|
||||
+ '<meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="' + escA(title) + '"><meta name="twitter:description" content="' + escA(desc) + '"><meta name="twitter:image" content="' + base + '/banners/iap-hero-1200x630.png">';
|
||||
+ '<meta property="og:image" content="' + ogImg + '"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630">'
|
||||
+ '<meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="' + escA(title) + '"><meta name="twitter:description" content="' + escA(desc) + '"><meta name="twitter:image" content="' + ogImg + '">';
|
||||
html = html.replace(/<title>[^<]*<\/title>/, '<title>' + escA(title) + ' | InstantAdPay</title>' + og);
|
||||
if (ang) html = html.replace('<body>', '<body class="squeeze">'); // angle pages: squeeze layout from the first paint
|
||||
// Network Ad Space zone on the two legacy squeeze pages only (Marty, 2026-09-19): below the
|
||||
|
||||
Reference in New Issue
Block a user