Skip to content

Commit

Permalink
support added for Source field in RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
milanaleksic authored and kisielk committed May 31, 2017
1 parent 441264d commit 3dbbcac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Author struct {
type Item struct {
Title string
Link *Link
Source *Link
Author *Author
Description string // used as description in rss, summary in atom
Id string // used as guid in rss, id in atom
Expand Down
1 change: 1 addition & 0 deletions rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func newRssItem(i *Item) *RssItem {
item := &RssItem{
Title: i.Title,
Link: i.Link.Href,
Source: i.Source.Href,
Description: i.Description,
Guid: i.Id,
PubDate: anyTimeFormat(time.RFC1123Z, i.Created, i.Updated),
Expand Down

0 comments on commit 3dbbcac

Please sign in to comment.