Commit 6ee1eb3a authored by zauberstuhl's avatar zauberstuhl

Remove obsolete parameter for post.FindByID

related to ganggo@e39028d8
parent ccfc1466
......@@ -59,7 +59,7 @@ func (c ApiComment) Create() revel.Result {
return c.RenderError(err)
}
err = post.FindByID(postID, true)
err = post.FindByID(postID)
if err != nil {
revel.AppLog.Error(err.Error())
return c.NotFound("Post not found")
......
......@@ -56,7 +56,7 @@ func (l ApiLike) Create() revel.Result {
l.Params.Bind(&postID, "id")
l.Params.Bind(&positive, "positive")
err := post.FindByID(postID, true)
err := post.FindByID(postID)
if err != nil {
revel.AppLog.Error(err.Error())
return l.NotFound("Post not found")
......
......@@ -147,7 +147,7 @@ func (p ApiPost) Show() revel.Result {
)
p.Params.Bind(&postID, "id")
err := post.FindByID(postID, false)
err := post.FindByID(postID)
if err != nil {
revel.AppLog.Error(err.Error())
return p.NotFound("Post not found")
......
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