fix nsfw tagging

This commit is contained in:
pancakes 2024-02-23 13:46:47 +10:00
parent 26f0411b66
commit 909cd67bef

6
bot.py
View file

@ -138,11 +138,13 @@ if is_nsfw == False:
# Check if any config defined NSFW tags are present
match config.type:
case "danbooru":
if tag in post["tag_string"] or tag in post["tag_string_general"] or tag in post["tag_string_artist"] or tag in post["tag_string_copyright"] or tag in post["tag_string_character"] or tag in post["tag_string_meta"]:
if tag in post["tag_string"].split():
print(tag)
is_nsfw = True
break
case "gelbooru":
if tag in post["tags"]:
if tag in post["tags"].split():
print(tag)
is_nsfw = True
break
case _: