From 758602686098cec7b251068ccfa687a838ba416e Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Fri, 20 Sep 2013 20:34:43 -0700 Subject: [PATCH] Make multis require over18 if a constituent subreddit does. --- r2/r2/models/subreddit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r2/r2/models/subreddit.py b/r2/r2/models/subreddit.py index ff5b1bfd0..d3ae55962 100644 --- a/r2/r2/models/subreddit.py +++ b/r2/r2/models/subreddit.py @@ -1249,6 +1249,10 @@ class MultiReddit(FakeSubreddit): def path(self): return self._path + @property + def over_18(self): + return any(sr.over_18 for sr in self.srs) + def get_links(self, sort, time): return get_links_sr_ids(self.kept_sr_ids, sort, time)