mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
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
This commit is contained in:
parent
fc9db6e2a2
commit
08e7b6f79f
1 changed files with 12 additions and 4 deletions
|
@ -58,6 +58,13 @@ final class PhabricatorUserBlurbField
|
||||||
->setLabel($this->getFieldName());
|
->setLabel($this->getFieldName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getApplicationTransactionRemarkupBlocks(
|
||||||
|
PhabricatorApplicationTransaction $xaction) {
|
||||||
|
return array(
|
||||||
|
$xaction->getNewValue(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public function renderPropertyViewLabel() {
|
public function renderPropertyViewLabel() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -67,10 +74,11 @@ final class PhabricatorUserBlurbField
|
||||||
if (!strlen($blurb)) {
|
if (!strlen($blurb)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return PhabricatorMarkupEngine::renderOneObject(
|
|
||||||
id(new PhabricatorMarkupOneOff())->setContent($blurb),
|
$viewer = $this->getViewer();
|
||||||
'default',
|
$view = new PHUIRemarkupView($viewer, $blurb);
|
||||||
$this->getViewer());
|
|
||||||
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStyleForPropertyView() {
|
public function getStyleForPropertyView() {
|
||||||
|
|
Loading…
Reference in a new issue