Skip to content

Commit d42854f

Browse files
committed
fix: do not sanatize discord embeds as it is always parsed as markdown
1 parent fa96557 commit d42854f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ type DiscordEmbedFooter struct {
9696
// format_discord_embeds builds one or more embeds from GotifyMessage.
9797
// It will split long descriptions into multiple embeds if necessary.
9898
func format_discord_embeds(msg *GotifyMessage) []DiscordEmbed {
99-
title := template.HTMLEscapeString(msg.Title)
100-
body := template.HTMLEscapeString(msg.Message)
99+
title := msg.Title
100+
body := msg.Message
101101

102102
// decide color by priority (example mapping)
103103
color := 0x2ECC71 // green default

0 commit comments

Comments
 (0)