Skip to content
Snippets Groups Projects
Verified Commit 291db9db authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fix image detail page

parent a8c5eb21
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,8 @@ 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,
......@@ -84,7 +85,6 @@ func pageImageDetail(ctx PageContext) http.Handler {
}
return
}
}
w.WriteHeader(http.StatusNotFound)
fmt.Fprint(w, "Image not found")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment