Include proper image cleanup

This commit is contained in:
2025-01-19 10:04:16 +01:00
parent cc8693ffaf
commit 0af4a70aed
3 changed files with 70 additions and 48 deletions

View File

@ -846,6 +846,13 @@ func DeleteArticle(c *b.Config, db *b.DB, s map[string]*Session) http.HandlerFun
return
}
go func(c *b.Config, db *b.DB) {
if err = b.CleanUpImages(c, db); err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)
}
}(c, db)
feed, err := b.GenerateAtomFeed(c, db)
if err != nil {
log.Println(err)