mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Added condition to cause promoted items to be votable regardless of age
This commit is contained in:
committed by
Neil Williams
parent
a71abf3c22
commit
4408453fa1
@@ -500,7 +500,7 @@ class Link(Thing, Printable):
|
||||
item.approval_checkmark = None
|
||||
|
||||
item_age = datetime.now(g.tz) - item._date
|
||||
if item_age.days > g.VOTE_AGE_LIMIT:
|
||||
if item_age.days > g.VOTE_AGE_LIMIT and item.promoted is None:
|
||||
item.votable = False
|
||||
else:
|
||||
item.votable = True
|
||||
|
||||
Reference in New Issue
Block a user