feat: nofwd tag

This commit is contained in:
xtaodada 2023-07-23 11:51:22 +08:00
parent 43e99555bd
commit 13877ebe41
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -61,7 +61,7 @@ class MisskeyBot(commands.Bot):
return False
if note.visibility in ["specified"]:
return False
if note.tags.index("nofwd") != -1:
if "nofwd" in note.tags:
return False
return True