mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
put in a temporary hack in the voting code to limit voting to the last 30 days. To be removed when data migration is finished
This commit is contained in:
@@ -700,7 +700,8 @@ class ApiController(RedditController):
|
||||
spam = (c.user._spam or
|
||||
errors.BANNED_IP in c.errors or
|
||||
errors.CHEATER in c.errors)
|
||||
if thing:
|
||||
# TODO: temporary hack until we migrate the rest of the vote data
|
||||
if thing and thing._date > datetime(2009, 4, 17, 0, 0, 0, 0, g.tz):
|
||||
dir = (True if dir > 0
|
||||
else False if dir < 0
|
||||
else None)
|
||||
|
||||
Reference in New Issue
Block a user