From be2d09011e1170ba312055a3e8606fab5f1234d3 Mon Sep 17 00:00:00 2001 From: pancakes Date: Sun, 3 Mar 2024 17:00:25 +1000 Subject: [PATCH] Update NSFW check --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7e8874f..b325e5c 100644 --- a/bot.py +++ b/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: