sonsongithub / reddift

Swift Reddit API Wrapper
MIT License
242 stars 52 forks source link

Sorting listings does not seem to work #210

Closed brandonasuncion closed 6 years ago

brandonasuncion commented 6 years ago

On line 116 in Session+listing.swift, getList() does not seem to work properly.

A quick fix that worked for me was changing the line to:

func getList(_ paginator: Paginator, subreddit: SubredditURLPath?, privateSortType: LinkSortType, timeFilterWithin: TimeFilterWithin, limit: Int = 25, completion: @escaping (Result<Listing>) -> Void) throws -> URLSessionDataTask {
sonsongithub commented 6 years ago

f7526bf9a1f38eff6ba62ed52c52ddc2ca34bb27