mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-05 06:04:24 +01:00
fix opengraph description missing due to wrongly assigned variable.
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user