diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2023-01-24 12:40:32 +0100 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2023-01-24 12:45:10 +0100 |
commit | 6b3933282e3aa9803636b2ba580aced5c202eaa9 (patch) | |
tree | afee0d9661e964a3f6f2f782bd959333c4cdaa09 /src/http/feed.go | |
parent | 63cc6cb217dadc2fa5aa8d55e054cdbad14df60a (diff) |
Refactor URL construction a bit
BlogHTTPURL and BlogGeminiURL are now used specifically to construct
absolute URLs to their respective endpoints.
Diffstat (limited to 'src/http/feed.go')
-rw-r--r-- | src/http/feed.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/feed.go b/src/http/feed.go index 918eb86..deaeb80 100644 --- a/src/http/feed.go +++ b/src/http/feed.go @@ -3,7 +3,6 @@ package http import ( "fmt" "net/http" - "path/filepath" "github.com/gorilla/feeds" "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" @@ -54,7 +53,7 @@ func (a *api) renderFeedHandler() http.Handler { feed.Updated = post.LastUpdatedAt } - postURL := publicURL + filepath.Join("/posts", post.ID) + postURL := a.postURL(post.ID, true) item := &feeds.Item{ Title: post.Title, |