Don't show over18 ads to people that don't want to see them.

This commit is contained in:
bsimpson63
2013-03-21 15:56:27 -04:00
parent e057278960
commit b658ce4e14

View File

@@ -41,7 +41,7 @@ def keep_fresh_links(item):
from r2.lib.promote import is_promo
if is_promo(item):
return not item.hidden
return (not item.over_18 or c.over18) and not item.hidden
return item.fresh