Differential D8849 Diff 21001 src/applications/maniphest/controller/ManiphestTransactionSaveController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTransactionSaveController.php
Show All 20 Lines | public function processRequest() { | ||||
$action = $request->getStr('action'); | $action = $request->getStr('action'); | ||||
// Compute new CCs added by @mentions. Several things can cause CCs to | // Compute new CCs added by @mentions. Several things can cause CCs to | ||||
// be added as side effects: mentions, explicit CCs, users who aren't | // be added as side effects: mentions, explicit CCs, users who aren't | ||||
// CC'd interacting with the task, and ownership changes. We build up a | // CC'd interacting with the task, and ownership changes. We build up a | ||||
// list of all the CCs and then construct a transaction for them at the | // list of all the CCs and then construct a transaction for them at the | ||||
// end if necessary. | // end if necessary. | ||||
$added_ccs = PhabricatorMarkupEngine::extractPHIDsFromMentions( | $added_ccs = PhabricatorMarkupEngine::extractPHIDsFromMentions( | ||||
$user, | |||||
array( | array( | ||||
$request->getStr('comments'), | $request->getStr('comments'), | ||||
)); | )); | ||||
$cc_transaction = new ManiphestTransaction(); | $cc_transaction = new ManiphestTransaction(); | ||||
$cc_transaction | $cc_transaction | ||||
->setTransactionType(ManiphestTransaction::TYPE_CCS); | ->setTransactionType(ManiphestTransaction::TYPE_CCS); | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |