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 e1af2979af - Show all commits

View File

@ -572,7 +572,8 @@ func ReviewArticleForDeletion(c *b.Config, db *b.DB, s *b.CookieStore) http.Hand
return
}
contentBytes, err := os.ReadFile(article.Link)
articleAbsName := fmt.Sprint(c.ArticleDir, "/", article.ID, ".md")
contentBytes, err := os.ReadFile(articleAbsName)
if err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)