Continue renaming webFeed to feed.

This commit is contained in:
Brent Simmons
2024-11-02 11:08:58 -07:00
parent 2d3ef95619
commit 4fa4c6a541
95 changed files with 1156 additions and 1160 deletions

View File

@@ -1,5 +1,5 @@
//
// AddWebFeedDefaultContainer.swift
// AddFeedDefaultContainer.swift
// NetNewsWire-iOS
//
// Created by Maurice Parker on 11/16/19.

View File

@@ -43,7 +43,7 @@ private func accountAndArticlesDictionary(_ articles: Set<Article>) -> [String:
extension Article {
var feed: Feed? {
return account?.existingWebFeed(withWebFeedID: webFeedID)
return account?.existingFeed(withFeedID: feedID)
}
var url: URL? {
@@ -121,11 +121,11 @@ extension Article {
return IconImageCache.shared.imageForArticle(self)
}
func iconImageUrl(webFeed: Feed) -> URL? {
func iconImageUrl(feed: Feed) -> URL? {
if let image = iconImage() {
let fm = FileManager.default
var path = fm.urls(for: .cachesDirectory, in: .userDomainMask)[0]
let feedID = webFeed.feedID.replacingOccurrences(of: "/", with: "_")
let feedID = feed.feedID.replacingOccurrences(of: "/", with: "_")
#if os(macOS)
path.appendPathComponent(feedID + "_smallIcon.tiff")
#else
@@ -193,7 +193,7 @@ extension Article {
struct ArticlePathKey {
static let accountID = "accountID"
static let accountName = "accountName"
static let webFeedID = "webFeedID"
static let feedID = "feedID"
static let articleID = "articleID"
}
@@ -203,7 +203,7 @@ extension Article {
return [
ArticlePathKey.accountID: accountID,
ArticlePathKey.accountName: account?.nameForDisplay ?? "",
ArticlePathKey.webFeedID: webFeedID,
ArticlePathKey.feedID: feedID,
ArticlePathKey.articleID: articleID
]
}
@@ -226,8 +226,8 @@ extension Article: SortableArticle {
return articleID
}
var sortableWebFeedID: String {
return webFeedID
var sortableFeedID: String {
return feedID
}
}