Clean type of author
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-08-29 21:14:36 +02:00
parent 572c108dc1
commit 1d10f555f3
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -331,7 +331,7 @@ func FeedItems(fetcher Fetcher, fetchURL, contentType string, body io.Reader) ([
for i, v := range items {
// Clear type of author, when other fields also aren't set
if v.Author != nil && v.Author.Name == "" && v.Author.Photo == "" && v.Author.URL == "" {
v.Type = ""
v.Author.Type = ""
items[i] = v
}
}