From f4576949220238abb193bb2a20beed566f8138c5 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 19 Nov 2017 21:24:19 -0800 Subject: [PATCH] Save and restore faviconURL in Feed. --- Frameworks/Data/Feed.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Frameworks/Data/Feed.swift b/Frameworks/Data/Feed.swift index df39c0e58..0aec20b39 100644 --- a/Frameworks/Data/Feed.swift +++ b/Frameworks/Data/Feed.swift @@ -16,6 +16,7 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable { public let url: String public let feedID: String public var homePageURL: String? + public var faviconURL: String? public var name: String? public var editedName: String? public var conditionalGetInfo: HTTPConditionalGetInfo? @@ -56,6 +57,7 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable { static let url = "url" static let feedID = "feedID" static let homePageURL = "homePageURL" + static let faviconURL = "faviconURL" static let name = "name" static let editedName = "editedName" static let conditionalGetInfo = "conditionalGetInfo" @@ -72,6 +74,7 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable { self.init(accountID: accountID, url: url, feedID: feedID) self.homePageURL = dictionary[Key.homePageURL] as? String + self.faviconURL = dictionary[Key.faviconURL] as? String self.name = dictionary[Key.name] as? String self.editedName = dictionary[Key.editedName] as? String self.contentHash = dictionary[Key.contentHash] as? String @@ -104,6 +107,9 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable { if let homePageURL = homePageURL { d[Key.homePageURL] = homePageURL } + if let faviconURL = faviconURL { + d[Key.faviconURL] = faviconURL + } if let name = name { d[Key.name] = name }