Fix article extractor base url

This commit is contained in:
Maurice Parker 2019-09-19 17:41:56 -05:00
parent 567d762ea4
commit 108226d17d

View File

@ -27,10 +27,11 @@ struct ArticleRenderer {
self.title = article?.title ?? ""
if let content = extractedArticle?.content {
self.body = content
self.baseURL = extractedArticle?.url
} else {
self.body = article?.body ?? ""
self.baseURL = article?.baseURL?.absoluteString
}
self.baseURL = article?.baseURL?.absoluteString
}
// MARK: - API