Commit 0d41904e by Carl Bergquist Committed by GitHub

Merge pull request #13755 from Yukinoshita-Yukino/master

Fix cannot receive dingding alert when alert message is empty
parents 259c2437 68c460a9
......@@ -57,6 +57,9 @@ func (this *DingDingNotifier) Notify(evalContext *alerting.EvalContext) error {
message := evalContext.Rule.Message
picUrl := evalContext.ImagePublicUrl
title := evalContext.GetNotificationTitle()
if message == "" {
message = title
}
bodyJSON, err := simplejson.NewJson([]byte(`{
"msgtype": "link",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment