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:
parent
ad1180f202
commit
093837b3a9
4
feed.go
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…
Reference in New Issue