forked from forgejo/forgejo
Alwaywas return local url for users avatar (#8245)
* Always return local url for users avatar Avoids having to wait for DNS lookups when libravatar is activated fixing #6046 * Avoid double slash in avatar link * Move avatar route to the correct place
This commit is contained in:
parent
b2b927808b
commit
d958b9db4f
4 changed files with 53 additions and 3 deletions
|
@ -404,6 +404,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
// r.Get("/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
|
||||
m.Any("/activate", user.Activate, reqSignIn)
|
||||
m.Any("/activate_email", user.ActivateEmail)
|
||||
m.Get("/avatar/:username/:size", user.Avatar)
|
||||
m.Get("/email2user", user.Email2User)
|
||||
m.Get("/recover_account", user.ResetPasswd)
|
||||
m.Post("/recover_account", user.ResetPasswdPost)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue