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:
parent
e8e185ceb3
commit
70fd45b139
1 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue