Stack POL Pro: the member's LinkSpin Video Spin on their page ('Watch @user's videos', up to three Social Tube posters, every tap opens the spin link); Video Spins no longer listed among the plain spin links; My Stack POL says which Video Spin shows or how to make a first video (Marty 2026-11-23)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-23 07:38:30 -06:00
parent 57d04c97dc
commit b97a4db7ec
4 changed files with 31 additions and 3 deletions
+2 -1
View File
@@ -15,7 +15,7 @@ const path = require('path');
const DATA_DIR = process.env.DATA_DIR || path.join(__dirname, 'data');
const docstore = require('./docstore'); docstore.install(DATA_DIR); // before any module reads data
const zlib = require('zlib');
const { SITE, esc, head, tail, ZONES, spot, personalize, memberLinks, proCta } = require('./layout');
const { SITE, esc, head, tail, ZONES, spot, personalize, memberLinks, memberVideos, proCta } = require('./layout');
let QR = null; try { QR = require('qrcode'); } catch (e) { console.error('[stackpol] qrcode module missing: no QR on Pro pages'); }
const { PROGRAMS, BY_KEY, BY_SLUG } = require('./programs');
const blog = require('./blog');
@@ -146,6 +146,7 @@ function stackPage(u, st) {
if (st.pro) { // Stack POL Pro (2026-11-09): the member's own links and a purple Polygon QR that opens this page
h += '<div class="prorow"><div style="min-width:0">' + (memberLinks(u, st) || '<p class="kick">@' + esc(u) + '\'s page</p>') + '<p class="lead" style="margin:6px 0 0">Scan the code to open @' + esc(u) + '\'s stack on your phone, or share it anywhere people can see it.</p></div>'
+ (QR ? '<div class="qr"><img src="/qr/' + esc(u) + '.svg" alt="QR code for stackpol.com/' + esc(u) + '" width="150" height="150"><span>stackpol.com/' + esc(u) + '</span></div>' : '') + '</div>';
h += memberVideos(u, st); // their LinkSpin Video Spin (2026-11-23)
}
h += spot(ZONES.banner, ZONES.strip);
h += '<div class="sec-head"><h2>@' + esc(u) + '\'s latest payouts</h2></div>' + tableHead(false) + ledgerRows(st.recent || [], false) + '</tbody></table></div>';