diff --git a/Shared/Data/ArticleUtilities.swift b/Shared/Data/ArticleUtilities.swift index 008e00ba1..538f09bf3 100644 --- a/Shared/Data/ArticleUtilities.swift +++ b/Shared/Data/ArticleUtilities.swift @@ -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? { diff --git a/xcconfig/NetNewsWire_macapp_target.xcconfig b/xcconfig/NetNewsWire_macapp_target.xcconfig index 3d350b080..a8e1f1a98 100644 --- a/xcconfig/NetNewsWire_macapp_target.xcconfig +++ b/xcconfig/NetNewsWire_macapp_target.xcconfig @@ -38,4 +38,4 @@ CODE_SIGN_ENTITLEMENTS = Mac/Resources/NetNewsWire.entitlements INFOPLIST_FILE = Mac/Resources/Info.plist LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks PRODUCT_BUNDLE_IDENTIFIER = com.ranchero.NetNewsWire-Evergreen -PRODUCT_NAME = NetNewsWire +PRODUCT_NAME = NetNewsWire \ No newline at end of file