From 3aef27585a57a156106ec4e6ecf380a19ae564d9 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Mon, 28 Oct 2024 17:57:51 +0100 Subject: [PATCH] Rename AtomFeed to AtomFile everywhere else --- cmd/calls/atom.go | 2 +- cmd/frontend/articles.go | 4 ++-- cmd/frontend/issues.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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