Exclude quarantined subreddits from embeds

This commit is contained in:
MelissaCole
2015-07-21 13:34:27 -07:00
committed by Florence Yeun
parent 31970a54f4
commit 930f1cd5fe

View File

@@ -43,7 +43,12 @@ def embeddable_sr(thing):
except NotFound:
sr = None
return sr if (sr is not None and sr.type not in Subreddit.private_types) else False
if (sr is not None and
sr.type not in Subreddit.private_types and
not sr.quarantine):
return sr
else:
return False
def edited_after(thing, iso_timestamp, showedits):