From 1cc5bc2865461013e99f813df52b75b51e29de8f Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 19 Aug 2018 21:35:26 +0200 Subject: [PATCH] If no Content is set, set it with Summary --- pkg/fetch/fetch.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/fetch/fetch.go b/pkg/fetch/fetch.go index 92a2d4d..14eb6ba 100644 --- a/pkg/fetch/fetch.go +++ b/pkg/fetch/fetch.go @@ -301,7 +301,11 @@ func FeedItems(fetcher Fetcher, fetchURL, contentType string, body io.Reader) ([ item.Content.HTML = expandHref(feedItem.Content, baseURL) } if len(feedItem.Summary) > 0 { - item.Summary = feedItem.Summary + if len(item.Content.HTML) == 0 { + item.Content.HTML = feedItem.Summary + } else { + item.Summary = feedItem.Summary + } } item.URL = feedItem.Link if feedItem.ID == "" {