Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14759588
D8594.id20380.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
941 B
Referenced Files
None
Subscribers
None
D8594.id20380.diff
View Options
diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -652,7 +652,7 @@
}
public function loadProfileImageURI() {
- if ($this->profileImage && $this->profileImage !== self::ATTACHABLE) {
+ if ($this->profileImage && ($this->profileImage !== self::ATTACHABLE)) {
return $this->profileImage;
}
@@ -664,13 +664,11 @@
$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();
- }
-
+ $this->profileImage = self::getDefaultProfileImageURI();
return $this->profileImage;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 1:16 PM (6 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7037022
Default Alt Text
D8594.id20380.diff (941 B)
Attached To
Mode
D8594: Restore psyduck to his proper place
Attached
Detach File
Event Timeline
Log In to Comment