mirror of
https://github.com/TwiN/gatus.git
synced 2025-01-03 12:39:39 +01:00
replace html entities with emojis to prevent rendering issues
This commit is contained in:
parent
83a555e334
commit
06c6a04c97
@ -147,7 +147,7 @@ func (provider *AlertProvider) buildRequestBody(cfg *Config, ep *endpoint.Endpoi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Configure default title if it's not provided
|
// Configure default title if it's not provided
|
||||||
title := "⛑ Gatus"
|
title := "⛑️ Gatus"
|
||||||
if cfg.Title != "" {
|
if cfg.Title != "" {
|
||||||
title = cfg.Title
|
title = cfg.Title
|
||||||
}
|
}
|
||||||
@ -157,9 +157,9 @@ func (provider *AlertProvider) buildRequestBody(cfg *Config, ep *endpoint.Endpoi
|
|||||||
for _, conditionResult := range result.ConditionResults {
|
for _, conditionResult := range result.ConditionResults {
|
||||||
var key string
|
var key string
|
||||||
if conditionResult.Success {
|
if conditionResult.Success {
|
||||||
key = "✅"
|
key = "✅"
|
||||||
} else {
|
} else {
|
||||||
key = "❌"
|
key = "❌"
|
||||||
}
|
}
|
||||||
facts = append(facts, Fact{
|
facts = append(facts, Fact{
|
||||||
Title: key,
|
Title: key,
|
||||||
|
Loading…
Reference in New Issue
Block a user