mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user