mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Add 404 page
This commit is contained in:
@@ -46,6 +46,11 @@ func HandleUser(c *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
wg.Wait()
|
||||
if user.Username == "" {
|
||||
c.Status(404)
|
||||
return c.Render("errors/404", nil)
|
||||
}
|
||||
|
||||
return c.Render("user", fiber.Map{
|
||||
"user": user,
|
||||
"submissions": submissions,
|
||||
|
||||
Reference in New Issue
Block a user