mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Fix collection post 500 when not logged in
This reverts some code from 5429ca4a
, which broke collection post
loading on blog posts when not logged in.
This commit is contained in:
parent
278e4f6242
commit
2899d98cfd
1 changed files with 1 additions and 1 deletions
2
posts.go
2
posts.go
|
@ -1390,7 +1390,7 @@ Are you sure it was ever here?`,
|
|||
return err
|
||||
}
|
||||
}
|
||||
p.IsOwner = owner != nil && p.OwnerID.Valid && u.ID == p.OwnerID.Int64
|
||||
p.IsOwner = owner != nil && p.OwnerID.Valid && owner.ID == p.OwnerID.Int64
|
||||
p.Collection = coll
|
||||
p.IsTopLevel = app.cfg.App.SingleUser
|
||||
|
||||
|
|
Loading…
Reference in a new issue