From fead70943e6d6ccbb45183748789a6dd94ab790c Mon Sep 17 00:00:00 2001 From: Bretton <36870434+BrettM86@users.noreply.github.com> Date: Fri, 17 Jul 2026 16:53:26 -0700 Subject: [PATCH] fix(post): render title-less posts as first-class content Coves posts may legitimately omit a title, so drop the 'Untitled post' fallback. Cozy/list views already show the body below the meta row; compact rows now use a plain-text body excerpt as their clickable text (new postTextFallback helper) so title-less posts stay scannable. The detail page's document/og title falls back to the excerpt, then to 'Post by @handle'. Co-Authored-By: Claude Fable 5 --- src/lib/app/i18n/en.json | 1 - src/lib/feature/post/Post.svelte | 18 ++++++-- src/lib/feature/post/helpers.test.ts | 42 +++++++++++++++++++ src/lib/feature/post/helpers.ts | 30 +++++++++++++ .../[handle=handle]/post/[rkey]/+page.svelte | 17 ++++---- 5 files changed, 97 insertions(+), 11 deletions(-) diff --git a/src/lib/app/i18n/en.json b/src/lib/app/i18n/en.json index 2c20db31..c782487d 100644 --- a/src/lib/app/i18n/en.json +++ b/src/lib/app/i18n/en.json @@ -566,7 +566,6 @@ "url": "URL" }, "post": { - "untitled": "Untitled post", "actions": { "comments": "Comments", "save": "Save", diff --git a/src/lib/feature/post/Post.svelte b/src/lib/feature/post/Post.svelte index 227e6185..1c686e5d 100644 --- a/src/lib/feature/post/Post.svelte +++ b/src/lib/feature/post/Post.svelte @@ -1,6 +1,5 @@