mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Normalize homePageURL on init-ing Feed.
This commit is contained in:
@@ -86,7 +86,9 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
|
||||
let feedID = dictionary[Key.feedID] as? String ?? url
|
||||
|
||||
self.init(accountID: accountID, url: url, feedID: feedID)
|
||||
self.homePageURL = dictionary[Key.homePageURL] as? String
|
||||
if let homePageURL = dictionary[Key.homePageURL] as? String {
|
||||
self.homePageURL = homePageURL.rs_normalizedURL()
|
||||
}
|
||||
self.iconURL = dictionary[Key.iconURL] as? String
|
||||
self.faviconURL = dictionary[Key.faviconURL] as? String
|
||||
self.name = dictionary[Key.name] as? String
|
||||
|
||||
Submodule submodules/RSCore updated: d0a4a1e695...0e9c6b45f5
Reference in New Issue
Block a user