Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/editor/PhabricatorAuditCommentEditor.php
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | public function addComment(PhabricatorAuditComment $comment) { | ||||
$ccs = $this->ccs; | $ccs = $this->ccs; | ||||
$auditors = $this->auditors; | $auditors = $this->auditors; | ||||
$metadata = $comment->getMetadata(); | $metadata = $comment->getMetadata(); | ||||
$metacc = array(); | $metacc = array(); | ||||
// Find any "@mentions" in the content blocks. | // Find any "@mentions" in the content blocks. | ||||
$mention_ccs = PhabricatorMarkupEngine::extractPHIDsFromMentions( | $mention_ccs = PhabricatorMarkupEngine::extractPHIDsFromMentions( | ||||
$this->getActor(), | |||||
$content_blocks); | $content_blocks); | ||||
if ($mention_ccs) { | if ($mention_ccs) { | ||||
$metacc = idx( | $metacc = idx( | ||||
$metadata, | $metadata, | ||||
PhabricatorAuditComment::METADATA_ADDED_CCS, | PhabricatorAuditComment::METADATA_ADDED_CCS, | ||||
array()); | array()); | ||||
foreach ($mention_ccs as $cc_phid) { | foreach ($mention_ccs as $cc_phid) { | ||||
$metacc[] = $cc_phid; | $metacc[] = $cc_phid; | ||||
▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines |