Removed replacing of \\n with \n.
This commit is contained in:
parent
aac097feb8
commit
18d45e5a92
@ -49,9 +49,6 @@ func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, entry := range posts {
|
|
||||||
entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
categories, err := h.mindflowDB.Categories()
|
categories, err := h.mindflowDB.Categories()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -68,9 +65,6 @@ func (h *Handlers) MindflowAdmin(w http.ResponseWriter, r *http.Request) {
|
|||||||
log.Println(err)
|
log.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, entry := range posts {
|
|
||||||
entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
categories, err := h.mindflowDB.Categories()
|
categories, err := h.mindflowDB.Categories()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -165,10 +159,6 @@ func (h *Handlers) RSS(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, entry := range posts {
|
|
||||||
entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
web.RSS(r.URL.Scheme+"://"+r.Host, "Arav", posts, r, w)
|
web.RSS(r.URL.Scheme+"://"+r.Host, "Arav", posts, r, w)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user