From 1142f4a1bc64e29a272110afad7f1fcd81d0fffe Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 11 Apr 2018 19:49:49 +0200 Subject: [PATCH] Check if author is set --- cmd/server/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/fetch.go b/cmd/server/fetch.go index 550c073..686138d 100644 --- a/cmd/server/fetch.go +++ b/cmd/server/fetch.go @@ -330,7 +330,7 @@ func (b *memoryBackend) feedItems(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.Name == "" && v.Author.Photo == "" && v.Author.URL == "" { + if v.Author != nil && v.Author.Name == "" && v.Author.Photo == "" && v.Author.URL == "" { v.Type = "" items[i] = v }