Change how tags are determined so that it works with Inoreader

This commit is contained in:
Maurice Parker 2020-10-25 16:55:28 -05:00
parent 71c52993ce
commit 1b53b8778d
1 changed files with 6 additions and 1 deletions

View File

@ -633,7 +633,12 @@ private extension ReaderAPIAccountDelegate {
} }
func deriveTagNames(_ tags: [ReaderAPITag]) -> [String] { func deriveTagNames(_ tags: [ReaderAPITag]) -> [String] {
return tags.filter { $0.tagID.hasPrefix("user/-/label/") }.map { $0.tagID.replacingOccurrences(of: "user/-/label/", with: "") } return tags.filter { $0.tagID.contains("/label/") }.compactMap {
guard let range = $0.tagID.range(of: "/label/") else {
return nil
}
return String($0.tagID.suffix(from: range.upperBound))
}
} }
func refreshFeeds(_ account: Account, completion: @escaping (Result<Void, Error>) -> Void) { func refreshFeeds(_ account: Account, completion: @escaping (Result<Void, Error>) -> Void) {