Merge redesign into main (#111)

This commit is contained in:
video-prize-ranch
2023-06-10 12:04:29 -04:00
parent 922480f05a
commit 4de1fa1e79
52 changed files with 598 additions and 371 deletions

View File

@@ -24,7 +24,9 @@ func HandlePost(c *fiber.Ctx) error {
post, err = ApiClient.FetchMedia(c.Params("postID"))
}
if err != nil && err.Error() == "ratelimited by imgur" {
return c.Status(429).Render("errors/429", nil)
return c.Status(429).Render("errors/429", fiber.Map{
"path": c.Path(),
})
}
if err != nil && post.Id == "" && strings.Contains(err.Error(), "404") {
return c.Status(404).Render("errors/404", nil)