File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class Post : VotableThing
19
19
private const string EditUserTextUrl = "/api/editusertext" ;
20
20
private const string HideUrl = "/api/hide" ;
21
21
private const string UnhideUrl = "/api/unhide" ;
22
- private const string SetFlairUrl = "/api/flair" ;
22
+ private const string SetFlairUrl = "/r/{0}/ api/flair" ;
23
23
private const string MarkNSFWUrl = "/api/marknsfw" ;
24
24
private const string UnmarkNSFWUrl = "/api/unmarknsfw" ;
25
25
private const string ContestModeUrl = "/api/set_contest_mode" ;
@@ -307,7 +307,7 @@ public void SetFlair(string flairText, string flairClass)
307
307
if ( Reddit . User == null )
308
308
throw new Exception ( "No user logged in." ) ;
309
309
310
- var request = WebAgent . CreatePost ( SetFlairUrl ) ;
310
+ var request = WebAgent . CreatePost ( string . Format ( SetFlairUrl , SubredditName ) ) ;
311
311
WebAgent . WritePostBody ( request . GetRequestStream ( ) , new
312
312
{
313
313
api_type = "json" ,
You can’t perform that action at this time.
0 commit comments