Skip to content

Commit

Permalink
Prefer item content over description
Browse files Browse the repository at this point in the history
Several feeds have the full item in content but an abbreviated version
in the description. This change will prefer the full item content over
the shorter description if there is any content.
  • Loading branch information
jamesd committed Sep 30, 2019
1 parent fdb900a commit 040882e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func createEmail(feedName string, feedTitle string, item *gofeed.Item, date time
email.setUserAgent(conf)
email.FeedURL = account.URI
email.ItemURI = item.Link
if item.Description == "" {
if item.Content != "" {
email.Body = item.Content
} else {
email.Body = item.Description
Expand Down

0 comments on commit 040882e

Please sign in to comment.