Update NSFW check
This commit is contained in:
parent
909cd67bef
commit
be2d09011e
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -131,7 +131,7 @@ with open(filename, "wb") as f:
|
|||
f.write(image.content)
|
||||
|
||||
# Image is NSFW if rated Explicit, Sensitive or Unknown
|
||||
is_nsfw = post["rating"].startswith("e") or post["rating"].startswith("s") or post["rating"] == None
|
||||
is_nsfw = not post["rating"].startswith("g") or post["rating"] == None
|
||||
|
||||
if is_nsfw == False:
|
||||
for tag in config.nsfw_tags:
|
||||
|
|
Loading…
Add table
Reference in a new issue