mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 01:04:05 +01:00
Removed datePublished force unwrap
This commit is contained in:
parent
bb99e6f69c
commit
53e0354f93
@ -47,7 +47,7 @@ public final class WidgetDataEncoder {
|
|||||||
articleTitle: ArticleStringFormatter.truncatedTitle(article).isEmpty ? ArticleStringFormatter.truncatedSummary(article) : ArticleStringFormatter.truncatedTitle(article),
|
articleTitle: ArticleStringFormatter.truncatedTitle(article).isEmpty ? ArticleStringFormatter.truncatedSummary(article) : ArticleStringFormatter.truncatedTitle(article),
|
||||||
articleSummary: article.summary,
|
articleSummary: article.summary,
|
||||||
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
||||||
pubDate: article.datePublished!.description)
|
pubDate: article.datePublished?.description ?? "")
|
||||||
unread.append(latestArticle)
|
unread.append(latestArticle)
|
||||||
if unread.count == 7 { break }
|
if unread.count == 7 { break }
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ public final class WidgetDataEncoder {
|
|||||||
articleTitle: ArticleStringFormatter.truncatedTitle(article).isEmpty ? ArticleStringFormatter.truncatedSummary(article) : ArticleStringFormatter.truncatedTitle(article),
|
articleTitle: ArticleStringFormatter.truncatedTitle(article).isEmpty ? ArticleStringFormatter.truncatedSummary(article) : ArticleStringFormatter.truncatedTitle(article),
|
||||||
articleSummary: article.summary,
|
articleSummary: article.summary,
|
||||||
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
||||||
pubDate: article.datePublished!.description)
|
pubDate: article.datePublished?.description ?? "")
|
||||||
starred.append(latestArticle)
|
starred.append(latestArticle)
|
||||||
if starred.count == 7 { break }
|
if starred.count == 7 { break }
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ public final class WidgetDataEncoder {
|
|||||||
articleTitle: ArticleStringFormatter.truncatedTitle(article).isEmpty ? ArticleStringFormatter.truncatedSummary(article) : ArticleStringFormatter.truncatedTitle(article),
|
articleTitle: ArticleStringFormatter.truncatedTitle(article).isEmpty ? ArticleStringFormatter.truncatedSummary(article) : ArticleStringFormatter.truncatedTitle(article),
|
||||||
articleSummary: article.summary,
|
articleSummary: article.summary,
|
||||||
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
||||||
pubDate: article.datePublished!.description)
|
pubDate: article.datePublished?.description ?? "")
|
||||||
today.append(latestArticle)
|
today.append(latestArticle)
|
||||||
if today.count == 7 { break }
|
if today.count == 7 { break }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user