Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sample/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
2 changes: 1 addition & 1 deletion sample/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion sample/notify.py.save
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down