diff --git a/src/applications/differential/editor/revision/DifferentialRevisionEditor.php b/src/applications/differential/editor/revision/DifferentialRevisionEditor.php index 5dff5ccade..99badd804d 100644 --- a/src/applications/differential/editor/revision/DifferentialRevisionEditor.php +++ b/src/applications/differential/editor/revision/DifferentialRevisionEditor.php @@ -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,