Skip to content

Commit

Permalink
added ID to atom item
Browse files Browse the repository at this point in the history
  • Loading branch information
t-900-a committed Apr 4, 2021
1 parent c42daa2 commit a738d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func main() {
Content: rss.RAWContent{RAWContent: "Anon was provided with their fortune, ready for yours?"},
Links: itemLink,
Date: ti.Format("2006-01-02T15:04:05Z"),
ID: fileName,
}
feedItems = append(feedItems, feedItem)

Expand All @@ -305,7 +306,6 @@ func main() {
Link: websiteLink,
Items: feedItems,
Updated: ti.Format("2006-01-02T15:04:05Z"),
ID: fileName,
}
atomFile, err := xml.MarshalIndent(feed, "", " ")
if err != nil {
Expand Down

0 comments on commit a738d00

Please sign in to comment.