diff --git a/cmd/backend/atom.go b/cmd/backend/atom.go index 6133818..5db78ae 100644 --- a/cmd/backend/atom.go +++ b/cmd/backend/atom.go @@ -12,7 +12,9 @@ func GenerateAtomFeed(c *Config, db *DB) (*string, error) { feed := atom.NewFeed(c.Title) feed.ID = atom.NewID("urn:feed:1") feed.Subtitle = atom.NewText("text", c.Description) - feed.AddLink(atom.NewLink(c.Link)) + + linkID := feed.AddLink(atom.NewLink(c.Link)) + feed.Links[linkID].Rel = "self" feed.Generator = atom.NewGenerator("cpolis") feed.Generator.URI = "https://git.streifling.com/jason/cpolis"