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)
|
||||
return
|
||||
}
|
||||
p, err := a.getPost(uu.Path)
|
||||
ppath := uu.Path
|
||||
if ppath == "" {
|
||||
// Probably homepage "/"
|
||||
ppath = "/"
|
||||
}
|
||||
p, err := a.getPost(ppath)
|
||||
if err != nil {
|
||||
a.serveError(w, r, err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue