Set feed.title from the OPML — don’t just leave it blank.
This commit is contained in:
parent
30324c8ec0
commit
448293a836
|
@ -744,9 +744,14 @@ private extension Account {
|
|||
func createFeed(with opmlFeedSpecifier: RSOPMLFeedSpecifier) -> Feed {
|
||||
|
||||
let feed = Feed(account: self, url: opmlFeedSpecifier.feedURL, feedID: opmlFeedSpecifier.feedURL)
|
||||
if let feedTitle = opmlFeedSpecifier.title, feed.editedName == nil {
|
||||
if let feedTitle = opmlFeedSpecifier.title {
|
||||
if feed.name == nil {
|
||||
feed.name = feedTitle
|
||||
}
|
||||
if feed.editedName == nil {
|
||||
feed.editedName = feedTitle
|
||||
}
|
||||
}
|
||||
return feed
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue