Ask what a backend supports instead of what it is

This commit is contained in:
Arkadiusz Fal
2026-09-07 18:48:50 +02:00
parent dca8e2fbe4
commit 5ac6b7188d
13 changed files with 187 additions and 124 deletions

View File

@@ -224,7 +224,7 @@ struct ImportSubscriptionsView: View {
error = nil
do {
guard instance.type == .invidious || instance.type == .piped else {
guard instance.type.accountCapabilities.supportsSubscriptions else {
throw ImportError.notSupported
}