Stack POL pages ON by default (Marty 2026-11-09: "Everyone's should be enabled by default"): every paid member has stackpol.com/<username>; only an explicit switch-off hides it. Promo tools copy, note and chatbot updated; my.js ?v=20261109pro3; qa/stackpro expects on by default. Pro features stay Pro-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-09 15:41:21 -06:00
parent bafeff9bf4
commit 054ce10985
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ try {
const A = 'sp-a@example.com', Bm = 'sp-b@example.com';
ok((await api('/api/my/stackpol')).status === 401, 'signed out: 401');
const ha = await signIn(A, 'stacka'), hb = await signIn(Bm, 'stackb');
let r = await api('/api/my/stackpol', null, ha); ok(r.status === 200 && r.j.on === false && r.j.url === 'https://stackpol.com/stacka' && r.j.pro && r.j.pro.pro === false, 'GET: off by default, url, not pro', JSON.stringify(r.j));
let r = await api('/api/my/stackpol', null, ha); ok(r.status === 200 && r.j.on === true && r.j.url === 'https://stackpol.com/stacka' && r.j.pro && r.j.pro.pro === false, 'GET: on by default, url, not pro', JSON.stringify(r.j));
r = await api('/api/my/stackpol', { data: { on: true } }, ha); ok(r.j.on === true && optin().users.stacka === true, 'switch on writes stack-optin.json');
r = await api('/api/my/stackpol', { data: { on: false } }, ha); ok(r.j.on === false && optin().users.stacka === false, 'switch off');
// a package with no Pro order unlocks nothing