comments: Check comment age against subreddit archive age.

This commit is contained in:
Daniel Ellis
2016-03-14 16:02:29 -07:00
parent b1e616b0fd
commit 64dbfd30d0

View File

@@ -1766,7 +1766,7 @@ class Comment(Thing, Printable):
item.is_author = (user == item.author)
item.is_focal = (focal_comment == item._id36)
item.votable = not item.archived
item.votable = item._age < item.subreddit.archive_age
hide_period = ('{0} minutes'
.format(item.subreddit.comment_score_hide_mins))