@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix object extraction from user profile blurbs

Summary: Fixes T10242. Currently, we don't extract files, mentions, etc., properly from user profile blurbs.

Test Plan: Uploaded a file to my profile blurb, saw it attach properly.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10242

Differential Revision: https://secure.phabricator.com/D15153

+12 -4
+12 -4
src/applications/people/customfield/PhabricatorUserBlurbField.php
··· 58 58 ->setLabel($this->getFieldName()); 59 59 } 60 60 61 + public function getApplicationTransactionRemarkupBlocks( 62 + PhabricatorApplicationTransaction $xaction) { 63 + return array( 64 + $xaction->getNewValue(), 65 + ); 66 + } 67 + 61 68 public function renderPropertyViewLabel() { 62 69 return null; 63 70 } ··· 67 74 if (!strlen($blurb)) { 68 75 return null; 69 76 } 70 - return PhabricatorMarkupEngine::renderOneObject( 71 - id(new PhabricatorMarkupOneOff())->setContent($blurb), 72 - 'default', 73 - $this->getViewer()); 77 + 78 + $viewer = $this->getViewer(); 79 + $view = new PHUIRemarkupView($viewer, $blurb); 80 + 81 + return $view; 74 82 } 75 83 76 84 public function getStyleForPropertyView() {