Check if author is set
This commit is contained in:
parent
999bc0d456
commit
1142f4a1bc
|
@ -330,7 +330,7 @@ func (b *memoryBackend) feedItems(fetchURL, contentType string, body io.Reader)
|
||||||
|
|
||||||
for i, v := range items {
|
for i, v := range items {
|
||||||
// Clear type of author, when other fields also aren't set
|
// Clear type of author, when other fields also aren't set
|
||||||
if v.Author.Name == "" && v.Author.Photo == "" && v.Author.URL == "" {
|
if v.Author != nil && v.Author.Name == "" && v.Author.Photo == "" && v.Author.URL == "" {
|
||||||
v.Type = ""
|
v.Type = ""
|
||||||
items[i] = v
|
items[i] = v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user