If author photo is missing, use icon instead

This commit is contained in:
Peter Stuifzand 2018-04-08 10:47:46 +02:00
parent ce169ec397
commit 5e80ddddca

View File

@ -133,6 +133,10 @@ func (b *memoryBackend) feedItems(fetchURL, contentType string, body io.Reader)
author.URL = feed.Author.URL
author.Photo = feed.Author.Avatar
if author.Photo == "" {
author.Photo = feed.Icon
}
for _, feedItem := range feed.Items {
var item microsub.Item
item.Name = feedItem.Title