Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2631698
D25035.1732077185.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25035.1732077185.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
@@ -320,12 +320,28 @@
const EMAIL_CYCLE_FREQUENCY = 86400;
const EMAIL_TOKEN_LENGTH = 24;
+ /**
+ * This function removes the blurb from a profile.
+ * This is an incredibly broad hammer to handle some spam on the upstream,
+ * which will be refined later.
+ *
+ * @return void
+ */
+ private function cleanUpProfile() {
+ $this->profile->setBlurb('');
+ }
+
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 +358,10 @@
$this->profile = PhabricatorUserProfile::initializeNewProfile($this);
}
+ if ($this->isDisabled) {
+ $this->cleanUpProfile();
+ }
+
return $this->profile;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 04:33 (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
980296
Default Alt Text
D25035.1732077185.diff (1 KB)
Attached To
Mode
D25035: Hide the blurb of a user when that user is disabled
Attached
Detach File
Event Timeline
Log In to Comment