Remove requirement for "alternate" element which shouldn't be required. Fixes #3708
This commit is contained in:
parent
8c9e4dff49
commit
6baee15007
|
@ -1060,7 +1060,7 @@ private extension ReaderAPIAccountDelegate {
|
|||
uniqueID: entry.uniqueID(variant: variant),
|
||||
feedURL: streamID,
|
||||
url: nil,
|
||||
externalURL: entry.alternates.first?.url,
|
||||
externalURL: entry.alternates?.first?.url,
|
||||
title: entry.title,
|
||||
language: nil,
|
||||
contentHTML: entry.summary.content,
|
||||
|
|
|
@ -58,7 +58,7 @@ struct ReaderAPIEntry: Codable {
|
|||
let timestampUsec: String?
|
||||
|
||||
let summary: ReaderAPIArticleSummary
|
||||
let alternates: [ReaderAPIAlternateLocation]
|
||||
let alternates: [ReaderAPIAlternateLocation]?
|
||||
let categories: [String]
|
||||
let origin: ReaderAPIEntryOrigin
|
||||
|
||||
|
|
Loading…
Reference in New Issue