Fix article extractor base url
This commit is contained in:
parent
567d762ea4
commit
108226d17d
@ -27,10 +27,11 @@ struct ArticleRenderer {
|
|||||||
self.title = article?.title ?? ""
|
self.title = article?.title ?? ""
|
||||||
if let content = extractedArticle?.content {
|
if let content = extractedArticle?.content {
|
||||||
self.body = content
|
self.body = content
|
||||||
|
self.baseURL = extractedArticle?.url
|
||||||
} else {
|
} else {
|
||||||
self.body = article?.body ?? ""
|
self.body = article?.body ?? ""
|
||||||
|
self.baseURL = article?.baseURL?.absoluteString
|
||||||
}
|
}
|
||||||
self.baseURL = article?.baseURL?.absoluteString
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - API
|
// MARK: - API
|
||||||
|
Loading…
x
Reference in New Issue
Block a user