mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Don't show over18 ads to people that don't want to see them.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user