Skip downloading featured images, since we’re not displaying them anywhere.

This commit is contained in:
Brent Simmons 2019-06-17 21:47:17 -07:00
parent 47a7fa420d
commit 6f16a2715e
1 changed files with 10 additions and 6 deletions

View File

@ -778,13 +778,17 @@ extension TimelineViewController: NSTableViewDelegate {
}
private func featuredImageFor(_ article: Article) -> NSImage? {
if let url = article.imageURL {
if let imageData = appDelegate.imageDownloader.image(for: url) {
return NSImage(data: imageData)
}
}
// At this writing (17 June 2019) were not displaying featured images anywhere,
// so lets skip downloading them even if we find them.
//
// Well revisit this later.
// if let url = article.imageURL {
// if let imageData = appDelegate.imageDownloader.image(for: url) {
// return NSImage(data: imageData)
// }
// }
return nil
}