Remove uses of Summary
This commit is contained in:
parent
9e6765bf8e
commit
78cace26d9
|
@ -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
|
||||
|
|
|
@ -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 := µsub.Content{}
|
||||
set := false
|
||||
|
|
Loading…
Reference in New Issue
Block a user