Fix a typo: it should be <img>, not <a href>
Some checks failed
rolling-release / build (push) Has been cancelled
rolling-release / rolling-release (push) Has been cancelled

This commit is contained in:
Dmitrii Okunev
2025-08-19 01:36:58 +01:00
parent 818db647a4
commit 293fb40d7c

View File

@@ -178,7 +178,7 @@ func messageAsHTML(msg string) string {
re := regexp.MustCompile(`https://yt3\.ggpht\.com/[^\s]+`)
return re.ReplaceAllStringFunc(msg, func(link string) string {
link = html.EscapeString(link)
return fmt.Sprintf(`<a href="%s">%s</a>`, link, link)
return fmt.Sprintf(`<img src="%s">`, link)
})
}