Skip to content

Commit

Permalink
Merge pull request #1205 from getfider/avatar-fix
Browse files Browse the repository at this point in the history
Fixed gravatar for usernames with unusual characters
  • Loading branch information
mattwoberts authored Sep 16, 2024
2 parents 42c9a98 + 3f5464c commit acc0fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cmd/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func routes(r *web.Engine) *web.Engine {
{
tenantAssets.Use(middlewares.ClientCache(5 * 24 * time.Hour))
tenantAssets.Get("/static/avatars/letter/:id/:name", handlers.LetterAvatar())
tenantAssets.Get("/static/avatars/gravatar/:id/:name", handlers.Gravatar())
tenantAssets.Get("/static/avatars/gravatar/:id/*name", handlers.Gravatar())

tenantAssets.Use(middlewares.ClientCache(30 * 24 * time.Hour))
tenantAssets.Get("/static/favicon/*bkey", handlers.Favicon())
Expand Down

0 comments on commit acc0fc7

Please sign in to comment.