1
0

Removed replacing of \\n with \n.

This commit is contained in:
Alexander Andreev 2023-05-23 03:27:30 +04:00
parent aac097feb8
commit 18d45e5a92
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -49,9 +49,6 @@ func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {
if err != nil {
return
}
for _, entry := range posts {
entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n")
}
categories, err := h.mindflowDB.Categories()
if err != nil {
@ -68,9 +65,6 @@ func (h *Handlers) MindflowAdmin(w http.ResponseWriter, r *http.Request) {
log.Println(err)
return
}
for _, entry := range posts {
entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n")
}
categories, err := h.mindflowDB.Categories()
if err != nil {
@ -165,10 +159,6 @@ func (h *Handlers) RSS(w http.ResponseWriter, r *http.Request) {
return
}
for _, entry := range posts {
entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n")
}
web.RSS(r.URL.Scheme+"://"+r.Host, "Arav", posts, r, w)
}