Use array for photo
This commit is contained in:
parent
24c6cb0672
commit
fa877ef89b
|
|
@ -277,7 +277,7 @@ func (b *memoryBackend) feedItems(fetchURL, contentType string, body io.Reader)
|
||||||
item.Id = hex.EncodeToString([]byte(feedItem.ID))
|
item.Id = hex.EncodeToString([]byte(feedItem.ID))
|
||||||
item.Published = feedItem.DatePublished
|
item.Published = feedItem.DatePublished
|
||||||
item.Author = author
|
item.Author = author
|
||||||
item.Photo = feedItem.Image
|
item.Photo = []string{feedItem.Image}
|
||||||
items = append(items, item)
|
items = append(items, item)
|
||||||
}
|
}
|
||||||
} else if strings.HasPrefix(contentType, "text/xml") || strings.HasPrefix(contentType, "application/rss+xml") || strings.HasPrefix(contentType, "application/atom+xml") {
|
} else if strings.HasPrefix(contentType, "text/xml") || strings.HasPrefix(contentType, "application/rss+xml") || strings.HasPrefix(contentType, "application/atom+xml") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user