diff --git a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index 58422a96f..e93ffb282 100644 --- a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -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, diff --git a/Account/Sources/Account/ReaderAPI/ReaderAPIEntry.swift b/Account/Sources/Account/ReaderAPI/ReaderAPIEntry.swift index 5d8575945..93de146f8 100644 --- a/Account/Sources/Account/ReaderAPI/ReaderAPIEntry.swift +++ b/Account/Sources/Account/ReaderAPI/ReaderAPIEntry.swift @@ -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