If author photo is missing, use icon instead
This commit is contained in:
parent
ce169ec397
commit
5e80ddddca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user