Page MenuHomePhabricator

Make default profile image configurable

Authored by valhallasw on Nov 15 2014, 1:15 PM.


Group Reviewers
Blessed Reviewers

For Wikimedia, we'd like to use a wikimedia logo instead of a Psyduck.

NOTE: this commit is not ready as-is. For some reason, the 'use default' image at /people/picture/ stays a Psyduck.

In addition, we could consider adding support for:

  • PHIDs instead of Fxx
  • external urls
  • 'celerity:///' urls for the default avatar / other avatars one could distribute that way
Test Plan

Change users.default-avatar to a File. Notice the image changes.

Diff Detail

rP Phabricator
Lint OK
Unit Tests OK
Build Status
Buildable 3063
Build 3069: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

valhallasw updated this revision to Diff 26070.Nov 15 2014, 1:15 PM
valhallasw retitled this revision from to Make default profile image configurable.
valhallasw updated this object.
valhallasw edited the test plan for this revision. (Show Details)
valhallasw added a project: Wikimedia.
valhallasw updated this revision to Diff 26071.Nov 15 2014, 1:17 PM
valhallasw edited edge metadata.

Fix default value

valhallasw updated this revision to Diff 26072.Nov 15 2014, 1:46 PM

Use PhabricatorUser::defaultProfileImageURI to show the default image in the edit window

epriestley requested changes to this revision.Nov 15 2014, 1:47 PM
epriestley added a reviewer: epriestley.

Sorry, we're not interested in pursuing this change in the upstream. See:

You can replace this file locally. You may also need to replace /resources/builtin/profile.png and destroy the File object which caches it (see PhabricatorFile::loadBuiltin()).

This revision now requires changes to proceed.Nov 15 2014, 1:47 PM
valhallasw abandoned this revision.Dec 16 2014, 1:41 PM