Merge pull request #3067 from stuartbreckenridge/fix/3056

Changes NewsBlur behavior for include_hidden
This commit is contained in:
Brent Simmons 2021-04-24 11:48:45 -07:00 committed by GitHub
commit ecfe26b78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ final class NewsBlurAPICaller: NSObject {
URLQueryItem(name: "page", value: String(page)), URLQueryItem(name: "page", value: String(page)),
URLQueryItem(name: "order", value: "newest"), URLQueryItem(name: "order", value: "newest"),
URLQueryItem(name: "read_filter", value: "all"), URLQueryItem(name: "read_filter", value: "all"),
URLQueryItem(name: "include_hidden", value: "true"), URLQueryItem(name: "include_hidden", value: "false"),
URLQueryItem(name: "include_story_content", value: "true"), URLQueryItem(name: "include_story_content", value: "true"),
]) ])
@ -150,7 +150,7 @@ final class NewsBlurAPICaller: NSObject {
func retrieveStories(hashes: [NewsBlurStoryHash], completion: @escaping (Result<([NewsBlurStory]?, Date?), Error>) -> Void) { func retrieveStories(hashes: [NewsBlurStoryHash], completion: @escaping (Result<([NewsBlurStory]?, Date?), Error>) -> Void) {
let url = baseURL let url = baseURL
.appendingPathComponent("reader/river_stories") .appendingPathComponent("reader/river_stories")
.appendingQueryItem(.init(name: "include_hidden", value: "true"))? .appendingQueryItem(.init(name: "include_hidden", value: "false"))?
.appendingQueryItems(hashes.map { .appendingQueryItems(hashes.map {
URLQueryItem(name: "h", value: $0.hash) URLQueryItem(name: "h", value: $0.hash)
}) })