diff --git a/cmd/calls/atom.go b/cmd/calls/atom.go index 7d57463..6110d4f 100644 --- a/cmd/calls/atom.go +++ b/cmd/calls/atom.go @@ -14,7 +14,7 @@ func ServeAtomFeed(c *b.Config) http.HandlerFunc { return } - absFilepath, err := filepath.Abs(c.AtomFeed) + absFilepath, err := filepath.Abs(c.AtomFile) if err != nil { log.Println(err) http.Error(w, err.Error(), http.StatusInternalServerError) diff --git a/cmd/frontend/articles.go b/cmd/frontend/articles.go index 616a56f..864bfd6 100644 --- a/cmd/frontend/articles.go +++ b/cmd/frontend/articles.go @@ -469,7 +469,7 @@ func PublishArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc { http.Error(w, err.Error(), http.StatusInternalServerError) return } - if err = b.SaveAtomFeed(c.AtomFeed, feed); err != nil { + if err = b.SaveAtomFeed(c.AtomFile, feed); err != nil { log.Println(err) http.Error(w, err.Error(), http.StatusInternalServerError) return @@ -704,7 +704,7 @@ func DeleteArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc { http.Error(w, err.Error(), http.StatusInternalServerError) return } - if err = b.SaveAtomFeed(c.AtomFeed, feed); err != nil { + if err = b.SaveAtomFeed(c.AtomFile, feed); err != nil { log.Println(err) http.Error(w, err.Error(), http.StatusInternalServerError) return diff --git a/cmd/frontend/issues.go b/cmd/frontend/issues.go index efa1ba8..4aefb63 100644 --- a/cmd/frontend/issues.go +++ b/cmd/frontend/issues.go @@ -97,7 +97,7 @@ func PublishLatestIssue(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFun http.Error(w, err.Error(), http.StatusInternalServerError) return } - if err = b.SaveAtomFeed(c.AtomFeed, feed); err != nil { + if err = b.SaveAtomFeed(c.AtomFile, feed); err != nil { log.Println(err) http.Error(w, err.Error(), http.StatusInternalServerError) return