Use array for photo

This commit is contained in:
Peter Stuifzand 2018-04-08 20:47:43 +02:00
parent 24c6cb0672
commit fa877ef89b

View File

@ -277,7 +277,7 @@ func (b *memoryBackend) feedItems(fetchURL, contentType string, body io.Reader)
item.Id = hex.EncodeToString([]byte(feedItem.ID))
item.Published = feedItem.DatePublished
item.Author = author
item.Photo = feedItem.Image
item.Photo = []string{feedItem.Image}
items = append(items, item)
}
} else if strings.HasPrefix(contentType, "text/xml") || strings.HasPrefix(contentType, "application/rss+xml") || strings.HasPrefix(contentType, "application/atom+xml") {