Differential D21864 Diff 52157 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Show First 20 Lines • Show All 2,357 Lines • ▼ Show 20 Lines | $block_xactions = $this->expandCustomRemarkupBlockTransactions( | ||||
$engine); | $engine); | ||||
$mentioned_phids = array(); | $mentioned_phids = array(); | ||||
if ($this->shouldEnableMentions($object, $xactions)) { | if ($this->shouldEnableMentions($object, $xactions)) { | ||||
foreach ($changes as $change) { | foreach ($changes as $change) { | ||||
// Here, we don't care about processing only new mentions after an edit | // Here, we don't care about processing only new mentions after an edit | ||||
// because there is no way for an object to ever "unmention" itself on | // because there is no way for an object to ever "unmention" itself on | ||||
// another object, so we can ignore the old value. | // another object, so we can ignore the old value. | ||||
if ($change->getNewValue() !== null) { | |||||
$engine->markupText($change->getNewValue()); | $engine->markupText($change->getNewValue()); | ||||
} | |||||
$mentioned_phids += $engine->getTextMetadata( | $mentioned_phids += $engine->getTextMetadata( | ||||
PhabricatorObjectRemarkupRule::KEY_MENTIONED_OBJECTS, | PhabricatorObjectRemarkupRule::KEY_MENTIONED_OBJECTS, | ||||
array()); | array()); | ||||
} | } | ||||
} | } | ||||
if (!$mentioned_phids) { | if (!$mentioned_phids) { | ||||
▲ Show 20 Lines • Show All 3,371 Lines • Show Last 20 Lines |