Make multis require over18 if a constituent subreddit does.

This commit is contained in:
Max Goodman
2013-09-20 20:34:43 -07:00
parent f2614b5e6f
commit 7586026860

View File

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