Merge mac-release.

This commit is contained in:
Brent Simmons 2019-09-07 20:59:19 -07:00
commit ecc8854f59
2 changed files with 8 additions and 2 deletions

View File

@ -47,7 +47,13 @@ extension Article {
}
var preferredLink: String? {
return url ?? externalURL
if let url = url, !url.isEmpty {
return url
}
if let externalURL = externalURL, !externalURL.isEmpty {
return externalURL
}
return nil
}
var body: String? {