Profile read endpoint answers 200 signedIn:false for visitors, so a shared /my link logs no console error

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-16 17:05:05 -05:00
parent 7d07fc01f1
commit dd74ded287
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -167,7 +167,8 @@
// who has not proved they own the position (the API 401s them).
async function require_() {
try { state = await api('/api/public/profile'); }
catch (e) { return null; } // not signed in: nothing to gate
catch (e) { return null; }
if (!state || state.signedIn === false) return null; // a visitor on a shared link: never gate
if (state.profile && state.profile.complete) return state.profile;
if (back) return null; // already open
shell();