Remove apex from the titleizedContent

This commit is contained in:
Daniele Tonon
2023-11-05 19:00:45 +01:00
parent 2bb637cbfd
commit d4740396cc

View File

@@ -170,9 +170,9 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
if titleizedContent == "" {
titleizedContent = title
} else if len(titleizedContent) <= 65 {
titleizedContent = "\"" + titleizedContent + "\""
titleizedContent = titleizedContent
} else {
titleizedContent = "\"" + titleizedContent[:64] + "…\""
titleizedContent = titleizedContent[:64]
}
// content massaging