Commit e39028d8 authored by zauberstuhl's avatar zauberstuhl

Remove obsolete parameter for post.FindByID

parent 2aec1bdf
......@@ -152,7 +152,7 @@ func (posts *Posts) FindAllByPersonID(id uint, offset int) (err error) {
}
func (post *Post) FindByID(id uint, withRelations bool) (err error) {
func (post *Post) FindByID(id uint) (err error) {
db, err := OpenDatabase()
if err != nil {
return err
......@@ -163,11 +163,7 @@ func (post *Post) FindByID(id uint, withRelations bool) (err error) {
if err != nil {
return
}
// add relations only if it is required
if withRelations {
return post.addRelations(db)
}
return
return post.addRelations(db)
}
func (post *Post) FindByGuid(guid string) (err error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment