diff --git a/Frameworks/Account/Container/Account+Container.swift b/Frameworks/Account/Container/Account+Container.swift index e45084ec8..4fef6bdb2 100644 --- a/Frameworks/Account/Container/Account+Container.swift +++ b/Frameworks/Account/Container/Account+Container.swift @@ -13,7 +13,18 @@ extension Account: Container { public func flattenedFeeds() -> Set { - return Set(feedIDDictionary.values) + var feeds = Set() + + for object in topLevelObjects { + if let feed = object as? Feed { + feeds.insert(feed) + } + else if let folder = object as? Folder { + feeds.formUnion(folder.flattenedFeeds()) + } + } + + return feeds } public func existingFeed(with feedID: String) -> Feed? {