If no Content is set, set it with Summary
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-08-19 21:35:26 +02:00
parent 94c86d57ff
commit 1cc5bc2865
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -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 == "" {