From f60fb6f8a94d23cd24e874bf4fe26acd5bb79306 Mon Sep 17 00:00:00 2001 From: henrygd Date: Sat, 26 Apr 2025 21:25:18 -0400 Subject: [PATCH] Handle title and link for Lark notifications --- beszel/internal/alerts/alerts.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beszel/internal/alerts/alerts.go b/beszel/internal/alerts/alerts.go index 9dc472a..84d6bd3 100644 --- a/beszel/internal/alerts/alerts.go +++ b/beszel/internal/alerts/alerts.go @@ -66,6 +66,7 @@ var supportsTitle = map[string]struct{}{ "gotify": {}, "ifttt": {}, "join": {}, + "lark": {}, "matrix": {}, "ntfy": {}, "opsgenie": {}, @@ -168,6 +169,9 @@ func (am *AlertManager) SendShoutrrrAlert(notificationUrl, title, message, link, if scheme == "ntfy" { // if ntfy, add link to actions queryParams.Add("Actions", fmt.Sprintf("view, %s, %s", linkText, link)) + } else if scheme == "lark" { + // if lark, add link query param + queryParams.Add("link", link) } else { // else add link directly to the message message += "\n\n" + link