Quarantine: Don't allow in r/random.

Replaces the check against the allow_random property, which was a quick hack to
deal with a specific subreddit.  Also removes allow_random from the _defaults dict
This commit is contained in:
Matt Lee
2015-07-21 16:44:22 -07:00
committed by Florence Yeun
parent 111d9f8491
commit 3395415d7e

View File

@@ -274,7 +274,6 @@ class Subreddit(Thing, Printable, BaseSite):
key_color='',
hide_ads=False,
ban_count=0,
allow_random=True,
quarantine=False,
)
@@ -998,7 +997,7 @@ class Subreddit(Thing, Printable, BaseSite):
promo_sr_id = cls.get_promote_srid()
for sr in srs:
if not sr.allow_random:
if sr.quarantine:
continue
if sr._id == promo_sr_id: