]> Sergey Matveev's repositories - sgblog.git/commitdiff
Fix disappearing content master v0.36.0
authorSergey Matveev <stargrave@stargrave.org>
Thu, 20 Feb 2025 14:23:39 +0000 (17:23 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 20 Feb 2025 14:24:34 +0000 (17:24 +0300)
cmd/sgblog/http.go
common.go

index b398716e084eb381bfc9aff265e8d7c57b165672..837320bdbf9c8bd291a37aeabf76124bea4c67cb 100644 (file)
@@ -739,8 +739,8 @@ func serveHTTP() {
                commentsParsed := sgblog.ParseComments(commentsRaw)
                comments := make([]CommentEntry, 0, len(commentsParsed))
                for _, comment := range commentsParsed {
                commentsParsed := sgblog.ParseComments(commentsRaw)
                comments := make([]CommentEntry, 0, len(commentsParsed))
                for _, comment := range commentsParsed {
-                       lines = strings.Split(comment, "\n")
-                       comments = append(comments, CommentEntry{lines[:3], lines[3:]})
+                       commentLines := strings.Split(comment, "\n")
+                       comments = append(comments, CommentEntry{commentLines[:3], commentLines[3:]})
                }
                var notesLines []string
                if len(notesRaw) > 0 {
                }
                var notesLines []string
                if len(notesRaw) > 0 {
index 67675a38f3b0002d7ecdd7770340e584eb40080a..ae0961e227ff2fd21f02cc3d5b574916943a3ea8 100644 (file)
--- a/common.go
+++ b/common.go
@@ -30,7 +30,7 @@ import (
 )
 
 const (
 )
 
 const (
-       Version = "0.35.0"
+       Version = "0.36.0"
        WhenFmt = "2006-01-02 15:04:05Z07:00"
 )
 
        WhenFmt = "2006-01-02 15:04:05Z07:00"
 )