mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
Use an indipendent var for note content
This commit is contained in:
@@ -160,6 +160,8 @@ func render(w http.ResponseWriter, r *http.Request) {
|
||||
description = prettyJsonOrRaw(event.Content)
|
||||
}
|
||||
|
||||
content := prettyJsonOrRaw(event.Content)
|
||||
|
||||
eventJSON, _ := json.MarshalIndent(event, "", " ")
|
||||
|
||||
params := map[string]any{
|
||||
@@ -175,6 +177,7 @@ func render(w http.ResponseWriter, r *http.Request) {
|
||||
"metadata": metadata,
|
||||
"authorLong": authorLong,
|
||||
"description": description,
|
||||
"content": content,
|
||||
"textImageURL": textImageURL,
|
||||
"videoType": videoType,
|
||||
"image": image,
|
||||
|
||||
Reference in New Issue
Block a user