fix(wechat): sync MindSpace pages after MP generation and redirect on 401
Memind CI / Test, build, and release guards (push) Failing after 3m31s

WeChat page delivery now triggers syncUserGeneratedPages so write_file HTML
gets page records; public share widget redirects unauthenticated owners to
WeChat OAuth instead of only showing an error.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-11 19:58:25 +08:00
parent 2c3c1f7a52
commit 0e7e4829db
6 changed files with 191 additions and 8 deletions
+2
View File
@@ -18,6 +18,8 @@ test('injectPublicFileShareButton adds plaza entry and confirm dialog', () => {
assert.doesNotMatch(result.html, /data-mindspace-public-share-dialog-panel"/);
assert.match(result.html, /color:#fff !important/);
assert.match(result.html, /apiErrorBody/);
assert.match(result.html, /redirectToMindSpaceLogin/);
assert.match(result.html, /auth\/wechat\/authorize\?intent=login/);
assert.match(result.html, /ALREADY_PUBLISHED/);
assert.equal(result.scriptHashes.length, 1);
});