From b1bc9b255d856eb36dcf2f8aa063c6cbe0d48263 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:25:59 +0000 Subject: [PATCH 1/3] Initial plan From d1a657010b3feebe9dc8563c1814933cf8708b16 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:28:28 +0000 Subject: [PATCH 2/3] Fix HITOKOTO parameter type mismatch in notify scripts Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- sample/notify.js | 2 +- sample/notify.py | 2 +- sample/notify.py.save | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/notify.js b/sample/notify.js index f935e8ce..284d8d9b 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -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()); } diff --git a/sample/notify.py b/sample/notify.py index 8dd885ca..6b82a572 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -1088,7 +1088,7 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs return 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() ts = [ diff --git a/sample/notify.py.save b/sample/notify.py.save index 0bfe668a..cda60ef3 100644 --- a/sample/notify.py.save +++ b/sample/notify.py.save @@ -991,7 +991,7 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs return 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() ts = [ From 13c35b70572731f28da1b4dcf716f1c3f9f7250b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:31:12 +0000 Subject: [PATCH 3/3] Refactor JavaScript HITOKOTO check for consistency with Python Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- sample/notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/notify.js b/sample/notify.js index 284d8d9b..59d38e86 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -1511,7 +1511,7 @@ async function sendNotify(text, desp, params = {}) { } } - if (push_config.HITOKOTO !== 'false' && push_config.HITOKOTO !== false) { + if (![false, 'false'].includes(push_config.HITOKOTO)) { desp += '\n\n' + (await one()); }