Skip to content

Commit 181a9db

Browse files
SteppermanStepperman
authored andcommitted
Search function needs lowercase. the enums were uppercase. Fixed that.
1 parent 28170ab commit 181a9db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RedditSharp/Reddit.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,10 @@ public Listing<T> SearchByUrl<T>(string url) where T : Thing
356356
return Search<T>(urlSearchQuery);
357357
}
358358

359-
public Listing<T> Search<T>(string query, Sorting sort = Sorting.Relevance, TimeSorting time = TimeSorting.All) where T : Thing
359+
public Listing<T> Search<T>(string query, Sorting sortE = Sorting.Relevance, TimeSorting timeE = TimeSorting.All) where T : Thing
360360
{
361+
string sort = sortE.ToString().ToLower();
362+
string time = timeE.ToString().ToLower();
361363
return new Listing<T>(this, string.Format(SearchUrl, query, sort, time), _webAgent);
362364
}
363365

0 commit comments

Comments
 (0)