From aa3b1771e74a749a2a9c065cdda4ea6a3904c707 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 9 May 2020 16:55:22 -0500 Subject: [PATCH] Change so that we no longer default to best sort order and instead use subreddit default --- .../Account/FeedProvider/Reddit/RedditFeedProvider.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Frameworks/Account/FeedProvider/Reddit/RedditFeedProvider.swift b/Frameworks/Account/FeedProvider/Reddit/RedditFeedProvider.swift index 7ba4c1b37..3cab2a4f9 100644 --- a/Frameworks/Account/FeedProvider/Reddit/RedditFeedProvider.swift +++ b/Frameworks/Account/FeedProvider/Reddit/RedditFeedProvider.swift @@ -163,12 +163,7 @@ public final class RedditFeedProvider: FeedProvider { return } - let api: String - if urlComponents.path == "" || urlComponents.path == "/" { - api = "/best.json" - } else { - api = "\(urlComponents.path).json" - } + let api = "\(urlComponents.path).json" let splitPath = urlComponents.path.split(separator: "/") let identifySubreddit: Bool