From 040882ec7aded9a46ae8b0c32d6d78f4a405ccfd Mon Sep 17 00:00:00 2001 From: James Davidson Date: Mon, 30 Sep 2019 12:27:36 -0700 Subject: [PATCH] Prefer item content over description 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. --- mail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail.go b/mail.go index f089e4d..faed9e3 100644 --- a/mail.go +++ b/mail.go @@ -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