feature/id-for-hmtl-headers #3

Open
jonathan wants to merge 61 commits from jonathan/cpolis:feature/id-for-hmtl-headers into devel
Showing only changes of commit f6dedc6f10 - Show all commits

View File

@ -620,6 +620,12 @@ func DeleteArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc {
return
}
if err = os.Remove(fmt.Sprint(c.ArticleDir, "/", id, ".md")); err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
feed, err := b.GenerateRSS(c, db)
if err != nil {
log.Println(err)