Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixup: Add contest mode ModAction to thing's subreddit
Browse files Browse the repository at this point in the history
Use `thing.subreddit_slow` as the subreddit to apply the ModAction to.
  • Loading branch information
MelissaCole committed Nov 9, 2015
1 parent dfc2910 commit 440ce32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/controllers/api.py
Expand Up @@ -1585,7 +1585,7 @@ def POST_set_contest_mode(self, form, jquery, thing, state):
action = 'setcontestmode'
else:
action = 'unsetcontestmode'
ModAction.create(c.site, c.user, action, target=thing)
ModAction.create(thing.subreddit_slow, c.user, action, target=thing)
jquery.refresh()

@require_oauth2_scope("modposts")
Expand Down

0 comments on commit 440ce32

Please sign in to comment.