mirror of https://github.com/jlelse/GoBlog
Fix editing of post homepage
This commit is contained in:
parent
64732af4d3
commit
d0ffb74546
|
@ -473,7 +473,12 @@ func (a *goBlog) micropubUpdate(w http.ResponseWriter, r *http.Request, u string
|
||||||
a.serveError(w, r, err.Error(), http.StatusBadRequest)
|
a.serveError(w, r, err.Error(), http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
p, err := a.getPost(uu.Path)
|
ppath := uu.Path
|
||||||
|
if ppath == "" {
|
||||||
|
// Probably homepage "/"
|
||||||
|
ppath = "/"
|
||||||
|
}
|
||||||
|
p, err := a.getPost(ppath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
a.serveError(w, r, err.Error(), http.StatusBadRequest)
|
a.serveError(w, r, err.Error(), http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue