Use ImageDownloader.shared.

This commit is contained in:
Brent Simmons 2024-06-30 18:14:11 -07:00
parent ada9818541
commit 750e287ff9

View File

@ -748,7 +748,7 @@ private extension TimelineViewController {
} }
func featuredImageFor(_ article: Article) -> UIImage? { func featuredImageFor(_ article: Article) -> UIImage? {
if let link = article.imageLink, let data = appDelegate.imageDownloader.image(for: link) { if let link = article.imageLink, let data = ImageDownloader.shared.image(for: link) {
return RSImage(data: data) return RSImage(data: data)
} }
return nil return nil