From 45c15c96aa5ad44a4f00b1e58b8757d27ceeefc2 Mon Sep 17 00:00:00 2001 From: Jeremy Beker Date: Wed, 12 Jun 2019 16:41:44 -0400 Subject: [PATCH] Marking read/unread functioning. --- .../GoogleReaderCompatibleAPICaller.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frameworks/Account/GoogleReaderCompatible/GoogleReaderCompatibleAPICaller.swift b/Frameworks/Account/GoogleReaderCompatible/GoogleReaderCompatibleAPICaller.swift index 3b31d423a..cd67f2939 100644 --- a/Frameworks/Account/GoogleReaderCompatible/GoogleReaderCompatibleAPICaller.swift +++ b/Frameworks/Account/GoogleReaderCompatible/GoogleReaderCompatibleAPICaller.swift @@ -707,11 +707,11 @@ final class GoogleReaderCompatibleAPICaller: NSObject { // Get ids from above into hex representation of value let idsToFetch = entries.map({ (idValue) -> String in - let idHexString = String(format: "%.16x", idValue) + let idHexString = String(format: "%.16llx", idValue) return "i=\(idHexString)" }).joined(separator:"&") - let postData = "T=\(token)&\(idsToFetch)&a=user/-/state/com.google/read".data(using: String.Encoding.utf8) + let postData = "T=\(token)&\(idsToFetch)&r=user/-/state/com.google/read".data(using: String.Encoding.utf8) self.transport.send(request: request, method: HTTPMethod.post, payload: postData!, completion: { (result) in switch result { @@ -746,11 +746,11 @@ final class GoogleReaderCompatibleAPICaller: NSObject { // Get ids from above into hex representation of value let idsToFetch = entries.map({ (idValue) -> String in - let idHexString = String(format: "%.16x", idValue) + let idHexString = String(format: "%.16llx", idValue) return "i=\(idHexString)" }).joined(separator:"&") - let postData = "T=\(token)&\(idsToFetch)&r=user/-/state/com.google/read".data(using: String.Encoding.utf8) + let postData = "T=\(token)&\(idsToFetch)&a=user/-/state/com.google/read".data(using: String.Encoding.utf8) self.transport.send(request: request, method: HTTPMethod.post, payload: postData!, completion: { (result) in switch result {