Show Feedbin image instead of image enclosure.

This commit is contained in:
Brent Simmons committed 2026-12-02 21:52:39 -08:00
1 parent 005ad5212a
commit f3eb190e78
1 file changed
+4
@@ -289,6 +289,10 @@ private extension ArticleRenderer {
// The thumbnail is used only for [[primary_media]].
let bodyImageIdentities = Self.bodyImageIdentities(body, baseURL: baseURL)
var attachments = article.attachments ?? []
// Feedbin’s image is also the timeline thumbnail, so it’s shown instead of the feed’s image enclosure.
if article.account?.type == .feedbin, let imageLink = article.imageLink, !imageLink.isEmpty {
attachments.removeAll { $0.displayMedium == .image }
}
var primaryMediaHTML = ""
var primaryMediaURLs = Set<String>()
let hasPrimaryMedia = template().contains(Self.primaryMediaMacro)