diff --git a/render.go b/render.go index 546c4aa..b4c0a66 100644 --- a/render.go +++ b/render.go @@ -328,7 +328,7 @@ func render(w http.ResponseWriter, r *http.Request) { "event": event, "eventJSON": string(eventJSON), "content": content, - "titleizedContent": titleize(content), + "titleizedContent": titleize(event.Content), "textImageURL": textImageURL, "videoType": videoType, "image": image, diff --git a/utils.go b/utils.go index 1ee224d..e4697ba 100644 --- a/utils.go +++ b/utils.go @@ -362,7 +362,7 @@ func titleize(s string) string { if len(s) <= 65 { return "\"" + s + "\"" } - return "\"" + s[:65] + "...\"" + return "\"" + s[:64] + "…\"" } func unique(strSlice []string) []string {