We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c1ad19 commit a27c321Copy full SHA for a27c321
RedditSharp/Reddit.cs
@@ -325,6 +325,9 @@ public JToken GetToken(Uri uri, bool isLive = false)
325
/// <returns></returns>
326
public Post GetPost(Uri uri)
327
{
328
+ if (!String.IsNullOrEmpty(WebAgent.AccessToken) && uri.AbsoluteUri.StartsWith("https://www.reddit.com"))
329
+ uri = new Uri(uri.AbsoluteUri.Replace("https://www.reddit.com", "https://oauth.reddit.com"));
330
+
331
return new Post().Init(this, GetToken(uri), WebAgent);
332
}
333
0 commit comments