mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 09:49:28 +08:00
Update bark notification to use url
param for link
This commit is contained in:
@@ -167,13 +167,12 @@ func (am *AlertManager) SendShoutrrrAlert(notificationUrl, title, message, link,
|
|||||||
|
|
||||||
// Add link
|
// Add link
|
||||||
if scheme == "ntfy" {
|
if scheme == "ntfy" {
|
||||||
// if ntfy, add link to actions
|
|
||||||
queryParams.Add("Actions", fmt.Sprintf("view, %s, %s", linkText, link))
|
queryParams.Add("Actions", fmt.Sprintf("view, %s, %s", linkText, link))
|
||||||
} else if scheme == "lark" {
|
} else if scheme == "lark" {
|
||||||
// if lark, add link query param
|
|
||||||
queryParams.Add("link", link)
|
queryParams.Add("link", link)
|
||||||
|
} else if scheme == "bark" {
|
||||||
|
queryParams.Add("url", link)
|
||||||
} else {
|
} else {
|
||||||
// else add link directly to the message
|
|
||||||
message += "\n\n" + link
|
message += "\n\n" + link
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user