Normalize homePageURL on init-ing Feed.
This commit is contained in:
parent
b4e711746d
commit
5d2a3e9142
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d0a4a1e69548137295f19b94d8dc41910619e020
|
||||
Subproject commit 0e9c6b45f561f9485e8f594c2c978f8a88f12b4f
|
Loading…
Reference in New Issue