forked from jason/cpolis
		
	Add rel="self" to Atom feed
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user