Skip downloading featured images, since we’re not displaying them anywhere.
This commit is contained in:
parent
47a7fa420d
commit
6f16a2715e
|
@ -778,12 +778,16 @@ extension TimelineViewController: NSTableViewDelegate {
|
|||
}
|
||||
|
||||
private func featuredImageFor(_ article: Article) -> NSImage? {
|
||||
// At this writing (17 June 2019) we’re not displaying featured images anywhere,
|
||||
// so let’s skip downloading them even if we find them.
|
||||
//
|
||||
// We’ll revisit this later.
|
||||
|
||||
if let url = article.imageURL {
|
||||
if let imageData = appDelegate.imageDownloader.image(for: url) {
|
||||
return NSImage(data: imageData)
|
||||
}
|
||||
}
|
||||
// if let url = article.imageURL {
|
||||
// if let imageData = appDelegate.imageDownloader.image(for: url) {
|
||||
// return NSImage(data: imageData)
|
||||
// }
|
||||
// }
|
||||
|
||||
return nil
|
||||
|
||||
|
|
Loading…
Reference in New Issue