Fix status sending bug
This commit is contained in:
parent
be7f0c5ddb
commit
54c9f64614
|
@ -861,12 +861,13 @@ final class ReaderAPICaller: NSObject {
|
||||||
request.httpMethod = "POST"
|
request.httpMethod = "POST"
|
||||||
|
|
||||||
// Get ids from above into hex representation of value
|
// Get ids from above into hex representation of value
|
||||||
let idsToFetch = entries.map({ idValue -> String in
|
let idsToFetch = entries.compactMap({ idValue -> String? in
|
||||||
if self.variant == .theOldReader {
|
if self.variant == .theOldReader {
|
||||||
return "i=tag:google.com,2005:reader/item/\(idValue)"
|
return "i=tag:google.com,2005:reader/item/\(idValue)"
|
||||||
} else {
|
} else {
|
||||||
let idHexString = String(format: "%.16llx", idValue)
|
guard let intValue = Int(idValue) else { return nil }
|
||||||
return "i=\(idHexString)"
|
let idHexString = String(format: "%.16llx", intValue)
|
||||||
|
return "i=tag:google.com,2005:reader/item/\(idHexString)"
|
||||||
}
|
}
|
||||||
}).joined(separator:"&")
|
}).joined(separator:"&")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue