Remove Feedbin api workaround for unpropagated mode=extended parameter

This commit is contained in:
Maurice Parker 2019-05-31 07:54:12 -05:00
parent 10296a1b74
commit fec3c69f4a
1 changed files with 2 additions and 3 deletions

View File

@ -419,13 +419,12 @@ final class FeedbinAPICaller: NSObject {
func retrieveEntries(page: String, completion: @escaping (Result<([FeedbinEntry]?, String?), Error>) -> Void) { func retrieveEntries(page: String, completion: @escaping (Result<([FeedbinEntry]?, String?), Error>) -> Void) {
guard let url = URL(string: page), var callComponents = URLComponents(url: url, resolvingAgainstBaseURL: false) else { guard let url = URL(string: page) else {
completion(.success((nil, nil))) completion(.success((nil, nil)))
return return
} }
callComponents.queryItems?.append(URLQueryItem(name: "mode", value: "extended")) let request = URLRequest(url: url, credentials: credentials)
let request = URLRequest(url: callComponents.url!, credentials: credentials)
transport.send(request: request, resultType: [FeedbinEntry].self) { result in transport.send(request: request, resultType: [FeedbinEntry].self) { result in