Summary: Add a field where you can put the gravatar email address to pull an image for the profile picture from Test Plan: Tried uploading a file, replacing with default, and various combinations and they all still work. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2105 Differential Revision: https://secure.phabricator.com/D4809
28 lines
561 B
PHP
28 lines
561 B
PHP
<?php
|
|
|
|
final class PhabricatorFileImageMacro extends PhabricatorFileDAO
|
|
implements PhabricatorSubscribableInterface {
|
|
|
|
protected $filePHID;
|
|
protected $phid;
|
|
protected $name;
|
|
protected $isDisabled = 0;
|
|
|
|
public function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_AUX_PHID => true,
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
public function generatePHID() {
|
|
return PhabricatorPHID::generateNewPHID(
|
|
PhabricatorPHIDConstants::PHID_TYPE_MCRO);
|
|
}
|
|
|
|
public function isAutomaticallySubscribed($phid) {
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|