Added condition to cause promoted items to be votable regardless of age

This commit is contained in:
jamesdaily
2011-08-18 01:44:18 -03:00
committed by Neil Williams
parent a71abf3c22
commit 4408453fa1

View File

@@ -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