Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random avatar begin regenerated on every page refresh #1131

Closed
wants to merge 1 commit into from
Closed

Fix random avatar begin regenerated on every page refresh #1131

wants to merge 1 commit into from

Commits on Mar 7, 2017

  1. Fix ramdom avatar begin regenerated on every page refresh

    See this line: https://github.com/go-gitea/gitea/blob/848293671b5d9c31ce3eb9ad8a1f130edd0ee7c5/models/user.go#L335
    
    This line was always returning true because u.CustomAvatarPath()
    uses a email hash to generate the avatar path, but it was actually
    generated and served by the user ID.
    
    Using hash on all cases is more consistent and fixes the issue.
    andreynering committed Mar 7, 2017
    Configuration menu
    Copy the full SHA
    a54cd82 View commit details
    Browse the repository at this point in the history