From 08339606e9413da3670de2d56cb558a0b7c5bf9b Mon Sep 17 00:00:00 2001 From: Anh Do Date: Sat, 14 Mar 2020 18:45:11 -0400 Subject: [PATCH] Use secure version of story images --- Frameworks/Account/NewsBlur/Models/NewsBlurStory.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Frameworks/Account/NewsBlur/Models/NewsBlurStory.swift b/Frameworks/Account/NewsBlur/Models/NewsBlurStory.swift index 8ac098ef6..e4878b287 100644 --- a/Frameworks/Account/NewsBlur/Models/NewsBlurStory.swift +++ b/Frameworks/Account/NewsBlur/Models/NewsBlurStory.swift @@ -23,7 +23,7 @@ struct NewsBlurStoriesResponse: Decodable { let authorName: String? let contentHTML: String? var imageURL: String? { - return imageURLs?.first + return imageURLs?.first?.value } var tags: [String]? var datePublished: Date? { @@ -31,7 +31,7 @@ struct NewsBlurStoriesResponse: Decodable { return Date(timeIntervalSince1970: interval) } - private var imageURLs: [String]? + private var imageURLs: [String: String]? private var publishedTimestamp: String } } @@ -50,7 +50,7 @@ extension NewsBlurStoriesResponse.Story { case url = "story_permalink" case authorName = "story_authors" case contentHTML = "story_content" - case imageURLs = "image_urls" + case imageURLs = "secure_image_urls" case tags = "story_tags" case publishedTimestamp = "story_timestamp" }