🐛 Fix avatar and banner APIs

This commit is contained in:
2024-06-26 17:16:14 +08:00
parent 7e4ca530fa
commit f69f1026d8
4 changed files with 34 additions and 39 deletions

View File

@ -94,7 +94,7 @@ func getAvatar(c *fiber.Ctx) error {
if content := user.GetAvatar(); content == nil {
return c.SendStatus(fiber.StatusNotFound)
} else {
return c.Redirect(*content, fiber.StatusNotFound)
return c.Redirect(*content, fiber.StatusFound)
}
}
@ -107,6 +107,6 @@ func getBanner(c *fiber.Ctx) error {
if content := user.GetBanner(); content == nil {
return c.SendStatus(fiber.StatusNotFound)
} else {
return c.Redirect(*content, fiber.StatusNotFound)
return c.Redirect(*content, fiber.StatusFound)
}
}