Check if item.Content != nil, because it doesn't have to be set
This commit is contained in:
parent
c613e18c7a
commit
66321c44a5
|
@ -332,9 +332,11 @@ func (b *memoryBackend) feedItems(fetchURL, contentType string, body io.Reader)
|
|||
for _, item := range items {
|
||||
log.Printf("ID=%s Name=%s\n", item.ID, item.Name)
|
||||
log.Printf("Author=%#v\n", item.Author)
|
||||
if item.Content != nil {
|
||||
log.Printf("Text=%s\n", item.Content.Text)
|
||||
log.Printf("HTML=%s\n", item.Content.HTML)
|
||||
}
|
||||
}
|
||||
|
||||
return items, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user