mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
fix: sends pushover ttl only if defined
This commit is contained in:
parent
8d05d80a5f
commit
a0d0d5b015
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,6 @@ class Pushover extends NotificationProvider {
|
||||||
"sound": notification.pushoversounds,
|
"sound": notification.pushoversounds,
|
||||||
"priority": notification.pushoverpriority,
|
"priority": notification.pushoverpriority,
|
||||||
"title": notification.pushovertitle,
|
"title": notification.pushovertitle,
|
||||||
"ttl": notification.pushoverttl,
|
|
||||||
"retry": "30",
|
"retry": "30",
|
||||||
"expire": "3600",
|
"expire": "3600",
|
||||||
"html": 1,
|
"html": 1,
|
||||||
|
@ -25,6 +24,9 @@ class Pushover extends NotificationProvider {
|
||||||
if (notification.pushoverdevice) {
|
if (notification.pushoverdevice) {
|
||||||
data.device = notification.pushoverdevice;
|
data.device = notification.pushoverdevice;
|
||||||
}
|
}
|
||||||
|
if (notification.pushoverttl) {
|
||||||
|
data.ttl = notification.pushoverttl;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (heartbeatJSON == null) {
|
if (heartbeatJSON == null) {
|
||||||
|
|
Loading…
Reference in a new issue