diff --git a/Shared/Article Rendering/ArticleRenderer.swift b/Shared/Article Rendering/ArticleRenderer.swift index 2ea520e19..ef7766ce6 100644 --- a/Shared/Article Rendering/ArticleRenderer.swift +++ b/Shared/Article Rendering/ArticleRenderer.swift @@ -48,7 +48,7 @@ struct ArticleRenderer { // MARK: - API - static func articleHTML(article: Article, extractedArticle: ExtractedArticle? = nil, style: ArticleStyle, useImageIcon: Bool = false) -> Rendering { + static func articleHTML(article: Article, extractedArticle: ExtractedArticle? = nil, style: ArticleStyle) -> Rendering { let renderer = ArticleRenderer(article: article, extractedArticle: extractedArticle, style: style) return (renderer.styleString(), renderer.articleHTML) } diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift index 16415a8dc..fe26ed60c 100644 --- a/iOS/Article/WebViewController.swift +++ b/iOS/Article/WebViewController.swift @@ -447,15 +447,15 @@ private extension WebViewController { if let articleExtractor = articleExtractor, articleExtractor.state == .processing { rendering = ArticleRenderer.loadingHTML(style: style) } else if let articleExtractor = articleExtractor, articleExtractor.state == .failedToParse, let article = article { - rendering = ArticleRenderer.articleHTML(article: article, style: style, useImageIcon: true) + rendering = ArticleRenderer.articleHTML(article: article, style: style) } else if let article = article, let extractedArticle = extractedArticle { if isShowingExtractedArticle { - rendering = ArticleRenderer.articleHTML(article: article, extractedArticle: extractedArticle, style: style, useImageIcon: true) + rendering = ArticleRenderer.articleHTML(article: article, extractedArticle: extractedArticle, style: style) } else { - rendering = ArticleRenderer.articleHTML(article: article, style: style, useImageIcon: true) + rendering = ArticleRenderer.articleHTML(article: article, style: style) } } else if let article = article { - rendering = ArticleRenderer.articleHTML(article: article, style: style, useImageIcon: true) + rendering = ArticleRenderer.articleHTML(article: article, style: style) } else { rendering = ArticleRenderer.noSelectionHTML(style: style) }