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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user