mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-12-24 12:27:57 +08:00
Fix a typo: it should be <img>, not <a href>
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user