Page MenuHomePhorge

D25035.1737991433.diff
No OneTemporary

D25035.1737991433.diff

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
@@ -320,12 +320,22 @@
const EMAIL_CYCLE_FREQUENCY = 86400;
const EMAIL_TOKEN_LENGTH = 24;
+ private function cleanUpProfile() {
+ $this->profile->setBlurb('');
+ // This function will be expanded later.
+ }
+
public function getUserProfile() {
return $this->assertAttached($this->profile);
}
public function attachUserProfile(PhabricatorUserProfile $profile) {
$this->profile = $profile;
+
+ if ($this->isDisabled) {
+ $this->cleanUpProfile();
+ }
+
return $this;
}
@@ -342,6 +352,10 @@
$this->profile = PhabricatorUserProfile::initializeNewProfile($this);
}
+ if ($this->isDisabled) {
+ $this->cleanUpProfile();
+ }
+
return $this->profile;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 15:23 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1150593
Default Alt Text
D25035.1737991433.diff (976 B)

Event Timeline