Fix wrong collection data in feed

Previously the logic was mixed up -- multi-user blogs would always load
collection number 1.
pull/32/head
Matt Baer 6 years ago
parent ad1180f202
commit 093837b3a9
  1. 4
      feed.go

@ -17,9 +17,9 @@ func ViewFeed(app *app, w http.ResponseWriter, req *http.Request) error {
var c *Collection
var err error
if app.cfg.App.SingleUser {
c, err = app.db.GetCollection(alias)
} else {
c, err = app.db.GetCollectionByID(1)
} else {
c, err = app.db.GetCollection(alias)
}
if err != nil {
return nil

Loading…
Cancel
Save