Upstreaming from https://phabricator.wikimedia.org/T307492
Steps to reproduce:
- PHP 8.2.8, Phorge at 85539ce25559b0a4dcfea54562a31d75ae7b27ad
- As an admin, go to http://phorge.localhost/config/edit/user.require-real-name/ and set non-default Make real names optional
- Go to http://phorge.localhost/people/new/standard/
- Set Name to userNoRealName, leave Real Name empty, set Email Address to exampleNoRealName@example.com
- Click Create User
- On the CLI, use ./bin/auth/recover userNoRealName to log into Phorge as that new user
- Select the user menu in the top bar
Expected outcome:
User avatar image fully rendered
Actual outcome:
User avatar image is cropped as the Real Name is missing