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