Don't allow a feed to be in more than one folder for Reader API accounts

This commit is contained in:
Maurice Parker
2020-10-31 17:26:43 -05:00
parent 51d74eaf45
commit cbb481c3f7
3 changed files with 24 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
private var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "ReaderAPI")
var behaviors: AccountBehaviors {
var behaviors: AccountBehaviors = [.disallowOPMLImports]
var behaviors: AccountBehaviors = [.disallowOPMLImports, .disallowFeedInMultipleFolders]
if variant == .freshRSS {
behaviors.append(.disallowFeedInRootFolder)
}