mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
reduces encoded article count
This commit is contained in:
@@ -32,7 +32,7 @@ struct WidgetDataEncoder {
|
||||
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
||||
pubDate: article.datePublished!.description)
|
||||
unread.append(latestArticle)
|
||||
if unread.count == 8 { break }
|
||||
if unread.count == 7 { break }
|
||||
}
|
||||
|
||||
// Starred Articles
|
||||
@@ -46,7 +46,7 @@ struct WidgetDataEncoder {
|
||||
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
||||
pubDate: article.datePublished!.description)
|
||||
starred.append(latestArticle)
|
||||
if starred.count == 8 { break }
|
||||
if starred.count == 7 { break }
|
||||
}
|
||||
|
||||
// Today Articles
|
||||
@@ -60,7 +60,7 @@ struct WidgetDataEncoder {
|
||||
feedIcon: article.iconImage()?.image.dataRepresentation(),
|
||||
pubDate: article.datePublished!.description)
|
||||
today.append(latestArticle)
|
||||
if today.count == 8 { break }
|
||||
if today.count == 7 { break }
|
||||
}
|
||||
|
||||
let latestData = WidgetData(currentUnreadCount: SmartFeedsController.shared.unreadFeed.unreadCount,
|
||||
|
||||
Reference in New Issue
Block a user