mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Show Feedbin image instead of image enclosure.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user