Fix HITOKOTO parameter type mismatch in notify scripts

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-29 11:28:28 +00:00
parent b1bc9b255d
commit d1a657010b
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 (push_config.HITOKOTO !== 'false' && push_config.HITOKOTO !== false) {
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 = [