Preserve custom feed titles from imported OPML across refreshes. Fixes #609.

This commit is contained in:
Brent Simmons committed 2026-07-28 10:04:04 -07:00
1 parent 936176c6a8
commit 691921876f
1 file changed
+3 -2
@@ -650,8 +650,9 @@ public enum FetchType {
let settings = feedSettings(feedURL: feedURL, feedID: feedURL)
let feed = Feed(account: self, url: opmlFeedSpecifier.feedURL, settings: settings)
if let feedTitle = opmlFeedSpecifier.title {
if feed.name == nil {
feed.name = feedTitle
// Store as editedName so the imported title survives the next refresh, which overwrites name with the feed's own title.
if feed.editedName == nil {
feed.editedName = feedTitle
}
}
return feed