Skip to content

Commit 07b676d

Browse files
committed
Fixes #77
1 parent dc00d86 commit 07b676d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RedditSharp/Things/Subreddit.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,8 @@ private async Task<Post> SubmitAsync(SubmitData data, ICaptchaSolver solver = nu
853853
{
854854
throw new Exception(json["errors"][0][0].ToString());
855855
}
856-
return new Post(WebAgent, json["data"]);
856+
857+
return new Post(WebAgent, await Helpers.GetTokenAsync(WebAgent, new Uri(json["data"]["url"].ToString())).ConfigureAwait(false));
857858
}
858859
/// <summary>
859860
/// Submits a link post in the current subreddit using the logged-in user

0 commit comments

Comments
 (0)