This commit is contained in:
Copilot 2026-01-29 11:31:16 +00:00 committed by GitHub
commit bbe7520ef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -1511,7 +1511,7 @@ async function sendNotify(text, desp, params = {}) {
} }
} }
if (push_config.HITOKOTO !== 'false') { if (![false, 'false'].includes(push_config.HITOKOTO)) {
desp += '\n\n' + (await one()); desp += '\n\n' + (await one());
} }

View File

@ -1088,7 +1088,7 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs
return return
hitokoto = push_config.get("HITOKOTO") hitokoto = push_config.get("HITOKOTO")
content += "\n\n" + one() if hitokoto != "false" else "" content += "\n\n" + one() if hitokoto not in [False, "false"] else ""
notify_function = add_notify_function() notify_function = add_notify_function()
ts = [ ts = [

View File

@ -991,7 +991,7 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs
return return
hitokoto = push_config.get("HITOKOTO") hitokoto = push_config.get("HITOKOTO")
content += "\n\n" + one() if hitokoto != "false" else "" content += "\n\n" + one() if hitokoto not in [False, "false"] else ""
notify_function = add_notify_function() notify_function = add_notify_function()
ts = [ ts = [