QA fixes: HEAD on page routes, Shorts signed-out 401, invite-page onboarding handoff, viewer check buttons clear of the overlay close button

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-09 11:03:26 -05:00
parent dc3a8e0464
commit fe217b897a
7 changed files with 19 additions and 7 deletions
+3 -1
View File
@@ -13,7 +13,9 @@
st.token = null; st.maxSeen = 0; st.credited = false; st.done = false;
$('shOver').hidden = true; $('shCta').hidden = true; $('shNext').hidden = true;
let r = null;
try { r = await j('/api/my/videos?orientation=portrait'); } catch (e) {}
// signed-out visitors get the sign-in note without a 401 round trip
let me = null; try { me = await j('/api/me'); } catch (e) {}
if (me && me.signedIn && me.email) { try { r = await j('/api/my/videos?orientation=portrait'); } catch (e) {} }
if (!r || r.error) { $('shVideo').hidden = true; $('shMsg').hidden = false; $('shMsg').textContent = 'Sign in on the dashboard to watch shorts and earn.'; return; }
$('shStat').textContent = 'today: ' + (r.status.count || 0) + ' / ' + r.status.cap;
if (!r.ad) {