Commit 291db9db authored by Janne Koschinski's avatar Janne Koschinski

Fix image detail page

parent a8c5eb21
......@@ -74,16 +74,16 @@ func pageImageDetail(ctx PageContext) http.Handler {
}
http.Redirect(w, r, "/me/images", http.StatusFound)
return
default:
if err = formatTemplate(w, "image_detail.html", ImageDetailData{
user,
info,
owner == user.Id,
}); err != nil {
panic(err)
}
return
}
if err = formatTemplate(w, "image_detail.html", ImageDetailData{
user,
info,
owner == user.Id,
}); err != nil {
panic(err)
}
return
}
w.WriteHeader(http.StatusNotFound)
......
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