mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Continue work on non-optional article.status.
This commit is contained in:
1 parent
b28a849af6
commit
8767aa3178
1 file changed
+1
-10
@@ -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