From 43d8951296ce2f232ca94f0577e2e726291bf783 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 26 May 2024 21:16:02 +0200 Subject: Replace URL building methods with the URLBuilder --- src/http/feed.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http/feed.go') 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, -- cgit v1.2.3