gabriel / musehub public
feat patch mists task/wave-hub-mists #4 / 10
AI Agent gabriel · 2 days ago · Nov 14, 2026 · Diff

feat(mists): Open Graph / Twitter text tags, canonical link and a single-suffix title on Mist pages (#277, Phase 1 partial)

mist_detail_page now passes og_meta (og:title/twitter:title = title or filename, og:description from the description or '<type> Mist by <owner> on MuseHub', whitespace-collapsed and cut at 200 chars on a word, og:type article, og:site_name MuseHub, og:url) and the template adds rel=canonical. URLs come from settings.public_url, never request.url. <title> is '<title or filename> · <owner>' with base.html's single ' — MuseHub' suffix. Not done: og:image / summary_large_image (needs the default card image decision, ticket open question 3) and Phases 2-4.

sha256:ff17c718b1ca8f72d7ad7c489d3a80ec9fa481cbb7d8d9aa986833a23e223919 sha
+8 ~2 symbols
sha256:34087d454de450c9f7f5b66b25276fb8b09db9eefe1d911ac977446db0d92aca snapshot
+8
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 10 symbols
~ musehub/api/routes/musehub/ui_mists.py .py 2 symbols added, 2 symbols modified
+ _og_description function function _og_description L80–86
+ _og_tags import import _og_tags L36–36
~ tests/test_mists_wave_fixes.py .py 6 symbols added
+ TestMistDetailOpenGraph class class TestMistDetailOpenGraph L506–533
+ test_fallbacks method method test_fallbacks L518–522
+ test_long_description_is_cut_on_a_word method method test_long_description_is_cut_on_a_word L524–528
+ test_secret_mist_is_still_a_404 method method test_secret_mist_is_still_a_404 L530–533
+ test_tags_title_and_canonical method method test_tags_title_and_canonical L507–516
+ _head_meta function function _head_meta L490–503

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:ff17c718b1ca8f72d7ad7c489d3a80ec9fa481cbb7d8d9aa986833a23e223919 --body "your comment"