Browse Source

feeds: add avatar and description fields to we-are-fields.txt generation (#17)

WIP: The fields `Avatar` and `Description` were added to the `we-are-feeds.txt` generation handler.
Co-authored-by: Nate <servusdei@programmer.net>
Reviewed-on: #17
Co-authored-by: servusdei2018 <servusdei2018@noreply@mills.io>
Co-committed-by: servusdei2018 <servusdei2018@noreply@mills.io>
pull/18/head
servusdei2018 1 week ago
committed by James Mills
parent
commit
c3dac1b9aa
  1. 2
      handlers.go

2
handlers.go

@ -322,7 +322,7 @@ func (app *App) WeAreFeedsHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
for _, feed := range app.GetFeeds() {
fmt.Fprintf(w, "%s %s\n", feed.Name, feed.URI)
fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", feed.Name, feed.URI, feed.Avatar, feed.Description)
}
return
}

Loading…
Cancel
Save