Fixes T10319. This looks for custom profile image, then falls back to a generated profile image.
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- T10319: Generate unique? profile images for each new user
- Commits
- rPeb73c50e87fc: Auto-generate profile images for sad psyducks
Create a new user, log in, and see new profile image. Note this seems to break bin/lipsum generate user
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/applications/people/storage/PhabricatorUserProfile.php | ||
---|---|---|
17–18 | I AM SURE THIS IS WRONG |
src/applications/people/cache/PhabricatorUserProfileImageCacheType.php | ||
---|---|---|
40 | This means we'll auto-upgrade to v2 when users load pages, but not when users run bin/people profileimage, I think? I think either "auto-upgrade" or "no auto-upgrade" are reasonable, but we should probably make both the script and cache do the same thing unless there's some particular reason not to. | |
src/applications/people/controller/PhabricatorPeopleProfilePictureController.php | ||
90–93 | It's possible this query could miss (if someone ran bin/remove destroy on the File, for example), so it would cover slightly more cases to do this: if ($default_image) { $default_image = load file; } if (!$default_image) { // <-- instead of "else" $default_image = psyduck; } | |
src/applications/people/storage/PhabricatorUserProfile.php | ||
17–18 | NOPE IT'S CORRECT SORRY BUDDY YOU DID A GREAT JOB |