Update NSFW check

This commit is contained in:
pancakes 2024-03-03 17:00:25 +10:00
parent 909cd67bef
commit be2d09011e

2
bot.py
View file

@ -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: