feature/table-of-content-docx #2

Merged
jason merged 58 commits from jonathan/cpolis:feature/table-of-content-docx into devel 2025-02-04 17:36:46 +01:00
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 return
} }
contentBytes, err := os.ReadFile(article.Link) articleAbsName := fmt.Sprint(c.ArticleDir, "/", article.ID, ".md")
contentBytes, err := os.ReadFile(articleAbsName)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusInternalServerError)