Don't set updated at field on feed, it's wonky

main
Brian Picciano 2 years ago
parent f3340ae5f4
commit 88ebaeda8f
  1. 7
      srv/src/http/feed.go

@ -57,15 +57,16 @@ func (a *api) renderFeedHandler() http.Handler {
postURL := publicURL + filepath.Join("/posts", post.ID) postURL := publicURL + filepath.Join("/posts", post.ID)
feed.Items = append(feed.Items, &feeds.Item{ item := &feeds.Item{
Title: post.Title, Title: post.Title,
Link: &feeds.Link{Href: postURL}, Link: &feeds.Link{Href: postURL},
Author: author, Author: author,
Description: post.Description, Description: post.Description,
Id: postURL, Id: postURL,
Updated: post.LastUpdatedAt,
Created: post.PublishedAt, Created: post.PublishedAt,
}) }
feed.Items = append(feed.Items, item)
} }
if err := feed.WriteAtom(rw); err != nil { if err := feed.WriteAtom(rw); err != nil {

Loading…
Cancel
Save