1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 17:30:59 +01:00

Use the correct actor handle when sending DifferentialNewDiffMail.

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-02-09 22:46:18 -08:00
parent e8e185ceb3
commit 70fd45b139

View file

@ -353,6 +353,12 @@ class DifferentialRevisionEditor {
$mail = array();
$phids = array($this->getActorPHID());
$handles = id(new PhabricatorObjectHandleData($phids))
->loadHandles();
$actor_handle = $handles[$this->getActorPHID()];
$changesets = null;
$comment = null;
if ($diff) {
@ -364,7 +370,7 @@ class DifferentialRevisionEditor {
if ($comment) {
$mail[] = id(new DifferentialNewDiffMail(
$revision,
$this->getActorPHID(),
$actor_handle,
$changesets))
->setIsFirstMailAboutRevision($is_new)
->setIsFirstMailToRecipients($is_new)
@ -418,12 +424,6 @@ class DifferentialRevisionEditor {
$revision->loadRelationships();
$phids = array($this->getActorPHID());
$handles = id(new PhabricatorObjectHandleData($phids))
->loadHandles();
$actor_handle = $handles[$this->getActorPHID()];
if ($add['rev']) {
$message = id(new DifferentialNewDiffMail(
$revision,