small pixel drawing of a pufferfish jrss

Add author to feed output
j3s j3s@c3f.net
Tue, 23 Feb 2021 19:11:33 -0600
commit

eb552529c422210dd03d5f96ccd84a3aecb4c5ac

parent

14d7e167d416571c88c0b71cbe6dd489d92b9bee

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M main.gomain.go

@@ -85,6 +85,9 @@ // display them when we loop over the

// posts. post.Custom = make(map[string]string) post.Custom["feed-title"] = feed.Title + if post.Author == nil { + post.Author = &gofeed.Person{} + } omegaFeed.Items = append(omegaFeed.Items, post) } }