Use an indipendent var for note content

This commit is contained in:
Daniele Tonon
2023-05-26 08:50:32 +02:00
parent f38571c8e9
commit 1798cda23a
2 changed files with 4 additions and 1 deletions

View File

@@ -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,