feat: show media attachment notice for unsupported post types (photos/videos)
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m20s
test / unit (pull_request) Successful in 16m15s
test / integration (pull_request) Failing after 17m1s

This commit is contained in:
2026-05-15 01:12:44 +02:00
parent e83b08fcc8
commit 83af9b2256
2 changed files with 25 additions and 3 deletions

View File

@@ -158,8 +158,12 @@ export function ThoughtCard({
</p>
) : (
<div
className="text-sm break-words [&_a]:underline [&_a]:text-primary [&_p]:mb-2"
dangerouslySetInnerHTML={{ __html: thought.content }}
className="text-sm break-words [&_a]:underline [&_a]:text-primary [&_p]:mb-2 [&_.media-notice]:text-muted-foreground [&_.media-notice]:italic"
dangerouslySetInnerHTML={{
__html:
thought.content.trim() ||
'<p class="media-notice">📎 Media attachment — not supported</p>',
}}
/>
)}
</CardContent>