mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 05:55:38 +08:00
Merge 13c35b7057 into d53437d169
This commit is contained in:
commit
bbe7520ef1
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user