Fix bug in db.GetAllArticles

This commit is contained in:
2025-02-12 17:27:56 +01:00
parent f68241c092
commit 6567c34834
2 changed files with 16 additions and 2 deletions

View File

@ -840,7 +840,7 @@ func DeleteArticle(c *b.Config, db *b.DB, s map[string]*Session) http.HandlerFun
return
}
if err = os.Remove(filepath.Join(c.ArticleDir, fmt.Sprint(article.UUID, ".md"))); err != nil {
if err = os.Remove(filepath.Join(c.ArticleDir, article.UUID.String()+".md")); err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return