Fix wrong collection data in feed

Previously the logic was mixed up -- multi-user blogs would always load
collection number 1.
This commit is contained in:
Matt Baer 2018-11-17 21:51:14 -05:00
parent ad1180f202
commit 093837b3a9
1 changed files with 2 additions and 2 deletions

View File

@ -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