1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-11-25 17:05:39 +00:00

feed: give a guid to each item

w3c recommends this.

Fixes #1

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-09 14:45:51 -05:00
parent a66095ea7c
commit 3cc3bb5f29
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -34,6 +34,7 @@ func ToFeed(link string, entries []Entry) (*feeds.Feed, error) {
Created: e.Date,
Link: &feeds.Link{Href: fmt.Sprintf("%s/ChangeLog.txt#src=feeds&time=%d", link, e.Date.Unix())},
Description: e.ToHTML(),
Id: fmt.Sprintf("%d", e.Date.Unix()),
}
updateWord := "updates"