getActor(); $this->applyAuditorEffect($object, $actor, $value, $status); } protected function validateAction($object, PhabricatorUser $viewer) { $config_key = 'audit.can-author-close-audit'; if (!PhabricatorEnv::getEnvConfig($config_key)) { if ($this->isViewerCommitAuthor($object, $viewer)) { throw new Exception( pht( 'You can not accept this commit because you are the commit '. 'author. You can only accept commits you did not author. You can '. 'change this behavior by adjusting the "%s" setting in Config.', $config_key)); } } if ($this->isViewerFullyAccepted($object, $viewer)) { throw new Exception( pht( 'You can not accept this commit because you have already '. 'accepted it.')); } } public function getTitle() { return pht( '%s accepted this commit.', $this->renderAuthor()); } public function getTitleForFeed() { return pht( '%s accepted %s.', $this->renderAuthor(), $this->renderObject()); } public function getTransactionTypeForConduit($xaction) { return 'accept'; } public function getFieldValuesForConduit($object, $data) { return array(); } }