Remove requirement for "alternate" element which shouldn't be required. Fixes #3708

This commit is contained in:
Maurice Parker 2022-10-02 14:57:48 -05:00
parent 8c9e4dff49
commit 6baee15007
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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