fix opengraph description missing due to wrongly assigned variable.

This commit is contained in:
fiatjaf
2023-11-06 10:14:22 -03:00
parent ddb1f4ab86
commit f349bd2d1d

View File

@@ -152,7 +152,7 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
}
} else {
// otherwise replace npub/nprofiles with names and trim length
description := replaceUserReferencesWithNames(r.Context(), []string{data.event.Content})[0]
description = replaceUserReferencesWithNames(r.Context(), []string{data.event.Content})[0]
if len(description) > 240 {
description = description[:240]
}