diff options
author | Ben Brooks <ben@bbrks.me> | 2018-04-07 21:50:45 +0100 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-04-07 13:50:45 -0700 |
commit | 538d08c16ce72dcbb8c6d041bdf9643cf4a16763 (patch) | |
tree | abe1f5d44ed9c29c57335051d5313e02e5868426 /reader/rss | |
parent | 449020c1e8019ca3c7032be77eb533fc2eed04e6 (diff) |
Add CommentsURL to entry
Diffstat (limited to 'reader/rss')
-rw-r--r-- | reader/rss/rss.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/reader/rss/rss.go b/reader/rss/rss.go index 1cd82ba..bc901db 100644 --- a/reader/rss/rss.go +++ b/reader/rss/rss.go @@ -43,6 +43,7 @@ type rssItem struct { Title string `xml:"title"` Links []rssLink `xml:"link"` OriginalLink string `xml:"http://rssnamespace.org/feedburner/ext/1.0 origLink"` + Comments string `xml:"comments"` Description string `xml:"description"` Content string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"` PubDate string `xml:"pubDate"` @@ -219,6 +220,7 @@ func (r *rssItem) GetEnclosures() model.EnclosureList { func (r *rssItem) Transform() *model.Entry { entry := new(model.Entry) entry.URL = r.GetURL() + entry.CommentsURL = r.Comments entry.Date = r.GetDate() entry.Author = r.GetAuthor() entry.Hash = r.GetHash() |