Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #594 from vaniver/master
Browse files Browse the repository at this point in the history
Shuts off downvotes by always raising a notenoughkarma error.

Fixes #592
  • Loading branch information
wezm committed Dec 1, 2016
2 parents 4823988 + fed1c26 commit 791c76a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions r2/r2/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ def check_downvote(self, vote_kind):
This makes the assumption that the user can't cast a vote for something
on the non-current subreddit.
"""

raise NotEnoughKarma('Downvoting temporarily disabled.')
from r2.models.vote import Vote, Link, Comment

def get_cached_downvotes(content_cls):
Expand Down

0 comments on commit 791c76a

Please sign in to comment.