mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Exclude quarantined subreddits from embeds
This commit is contained in:
committed by
Florence Yeun
parent
31970a54f4
commit
930f1cd5fe
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user