mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Restore psyduck to his proper place
Summary: Fixes T4665. The "attachable" logic was a little off after a recent change. Test Plan: With and without a profile image, viewed a page. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T4665 Differential Revision: https://secure.phabricator.com/D8594
This commit is contained in:
parent
b849f8920d
commit
9c872749a0
1 changed files with 3 additions and 5 deletions
|
@ -652,7 +652,7 @@ EOBODY;
|
|||
}
|
||||
|
||||
public function loadProfileImageURI() {
|
||||
if ($this->profileImage && $this->profileImage !== self::ATTACHABLE) {
|
||||
if ($this->profileImage && ($this->profileImage !== self::ATTACHABLE)) {
|
||||
return $this->profileImage;
|
||||
}
|
||||
|
||||
|
@ -664,13 +664,11 @@ EOBODY;
|
|||
$file = id(new PhabricatorFile())->loadOneWhere('phid = %s', $src_phid);
|
||||
if ($file) {
|
||||
$this->profileImage = $file->getBestURI();
|
||||
return $this->profileImage;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$this->profileImage) {
|
||||
$this->profileImage = self::getDefaultProfileImageURI();
|
||||
}
|
||||
|
||||
return $this->profileImage;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue