Commit f370589
committed
fix(slack): Send only custom template when custom_body is set
When a custom template is configured for an alert, the Slack destination
was appending the custom_body to the default fields (Query/Alert links)
instead of replacing them. This resulted in both default and custom
templates being displayed together.
This fix restructures the notification logic:
- If custom_body is set: send only the custom template
- If custom_body is not set: send default template (existing behavior)1 parent 9743820 commit f370589
1 file changed
+24
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 26 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 27 | | |
46 | 28 | | |
47 | | - | |
48 | 29 | | |
49 | 30 | | |
50 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments