diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2024-05-26 21:16:02 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2024-05-26 21:16:02 +0200 |
commit | 43d8951296ce2f232ca94f0577e2e726291bf783 (patch) | |
tree | a04793b1e15e10040201dfafd1c25c649030f72c /src/http/feed.go | |
parent | a6342a3748beaee1ec3c2dc662af6deec0c3959d (diff) |
Replace URL building methods with the URLBuilder
Diffstat (limited to 'src/http/feed.go')
-rw-r--r-- | src/http/feed.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/feed.go b/src/http/feed.go index eb72464..676d376 100644 --- a/src/http/feed.go +++ b/src/http/feed.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/gorilla/feeds" "dev.mediocregopher.com/mediocre-blog.git/src/http/apiutil" "dev.mediocregopher.com/mediocre-blog.git/src/post" + "github.com/gorilla/feeds" ) func (a *api) renderFeedHandler() http.Handler { @@ -53,7 +53,7 @@ func (a *api) renderFeedHandler() http.Handler { feed.Updated = post.LastUpdatedAt } - postURL := a.postURL(post.ID, true) + postURL := a.urlBuilder.Post(post.ID).Absolute().String() item := &feeds.Item{ Title: post.Title, |