fixed the email template when the description was marked as a link

This commit is contained in:
Roman Perekhod
2024-06-27 13:51:12 +02:00
parent 6ece248497
commit 3520431e1f
3 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -89,6 +89,6 @@ func callToActionToHTML(s string) string {
if strings.TrimSpace(s) == "" {
return ""
}
s = strings.TrimSuffix(s, "{{ .ShareLink }}")
return `<a href="{{ .ShareLink }}">` + s + `</a>`
s = strings.TrimSuffix(s, "{ShareLink}")
return s + `<a href="{ShareLink}">{ShareLink}</a>`
}