mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Render object remarkup references in a text context as "Dxxx <uri>"
Summary: Depends on D19031. Fixes T11389. Currently, we render `Dxxx` in a text context (plain text email) as just a URI. Instead, render it like `Dxxx <uri>`. This is more faithful to the original intent and preserves `T123/T456` as two separate, usable links. Test Plan: Wrote `T123/T234` in a task, pulled mail for it with `bin/mail show-outbound`, saw separate clickable links. Maniphest Tasks: T11389 Differential Revision: https://secure.phabricator.com/D19032
This commit is contained in:
parent
bca9c08953
commit
0402a79e0e
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ abstract class PhabricatorObjectRemarkupRule extends PhutilRemarkupRule {
|
|||
}
|
||||
|
||||
if ($this->getEngine()->isTextMode()) {
|
||||
return PhabricatorEnv::getProductionURI($href);
|
||||
return $text.' <'.PhabricatorEnv::getProductionURI($href).'>';
|
||||
} else if ($this->getEngine()->isHTMLMailMode()) {
|
||||
$href = PhabricatorEnv::getProductionURI($href);
|
||||
return $this->renderObjectTagForMail($text, $href, $handle);
|
||||
|
|
Loading…
Reference in a new issue