Skip to content

Commit

Permalink
Making Source field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
milanaleksic authored and kisielk committed May 31, 2017
1 parent b238132 commit d7974c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ 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),
}
if i.Source != nil {
item.Source = i.Source.Href
}

intLength, err := strconv.ParseInt(i.Link.Length, 10, 64)

Expand Down

0 comments on commit d7974c3

Please sign in to comment.