summaryrefslogtreecommitdiff
path: root/srv/src
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-22 09:33:24 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-22 09:33:24 -0600
commit88ebaeda8f02e2c89dac44809fffb1f9ebb71bd0 (patch)
tree102419baf37eb199e92bd9b38bdc8c94c8fd3989 /srv/src
parentf3340ae5f4ac6c60823bf4d14e1fcdbeaaec353c (diff)
Don't set updated at field on feed, it's wonky
Diffstat (limited to 'srv/src')
-rw-r--r--srv/src/http/feed.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/srv/src/http/feed.go b/srv/src/http/feed.go
index 2f1faa8..8bb01c4 100644
--- a/srv/src/http/feed.go
+++ b/srv/src/http/feed.go
@@ -57,15 +57,16 @@ func (a *api) renderFeedHandler() http.Handler {
postURL := publicURL + filepath.Join("/posts", post.ID)
- feed.Items = append(feed.Items, &feeds.Item{
+ item := &feeds.Item{
Title: post.Title,
Link: &feeds.Link{Href: postURL},
Author: author,
Description: post.Description,
Id: postURL,
- Updated: post.LastUpdatedAt,
Created: post.PublishedAt,
- })
+ }
+
+ feed.Items = append(feed.Items, item)
}
if err := feed.WriteAtom(rw); err != nil {