mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Continue work on non-optional article.status.
This commit is contained in:
@@ -72,16 +72,7 @@ public final class Account: DisplayNameProvider, Hashable {
|
||||
|
||||
public func markArticles(_ articles: Set<Article>, statusKey: String, flag: Bool) {
|
||||
|
||||
let statuses = database.statuses(for: articles)
|
||||
if statuses.isEmpty {
|
||||
return
|
||||
}
|
||||
database.mark(statuses, statusKey: statusKey, flag: flag)
|
||||
}
|
||||
|
||||
public func articleStatus(for article: Article) -> ArticleStatus? {
|
||||
|
||||
return database.status(for: article)
|
||||
database.mark(articles, statusKey: statusKey, flag: flag)
|
||||
}
|
||||
|
||||
public func ensureFolder(with name: String) -> Folder? {
|
||||
|
||||
Reference in New Issue
Block a user