Remove uses of Summary

This commit is contained in:
Peter Stuifzand 2018-08-29 21:21:41 +02:00
parent 9e6765bf8e
commit 78cace26d9
Signed by: peter
GPG Key ID: 374322D56E5209E8
2 changed files with 0 additions and 9 deletions

View File

@ -261,7 +261,6 @@ func FeedItems(fetcher Fetcher, fetchURL, contentType string, body io.Reader) ([
item.Content.HTML = feedItem.ContentHTML
item.Content.Text = feedItem.ContentText
item.URL = feedItem.URL
item.Summary = append(item.Summary, feedItem.Summary)
item.ID = hex.EncodeToString([]byte(feedItem.ID))
item.Published = feedItem.DatePublished
@ -303,8 +302,6 @@ func FeedItems(fetcher Fetcher, fetchURL, contentType string, body io.Reader) ([
if len(feedItem.Summary) > 0 {
if len(item.Content.HTML) == 0 {
item.Content.HTML = feedItem.Summary
} else {
item.Summary = append(item.Summary, feedItem.Summary)
}
}
item.URL = feedItem.Link

View File

@ -257,12 +257,6 @@ func MapToItem(result map[string]interface{}) microsub.Item {
}
}
if summary, e := result["summary"]; e {
if summaryString, ok := summary.(string); ok {
item.Summary = append(item.Summary, summaryString)
}
}
if content, e := result["content"]; e {
itemContent := &microsub.Content{}
set := false