mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
When a mention/article body contains an inline `http(s)` image link, show the image as the notification's big picture (BigPictureStyle) instead of leaving the raw URL in the text. NotificationContent.renderNoteText() now pulls the first image URL out of the content — scanning all lines, since images usually sit on their own line — using the cheap RichTextParser.isImageUrl extension check, and strips that link from the excerpt. Videos are left in the text (Coil can't load them as a still). The Mention and Article renderers pass the extracted URL as bigPictureUrl; Reply stays MessagingStyle (a big picture doesn't fit a chat bubble) and keeps its text as-is. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0122uQ8BLHLeHDni81RBP26r