mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Fix insufficient loading for processing Differential mail
Summary: Some actions (notably, `!accept`) require more information than we currently load. Test Plan: Piped in some `!accept` mail using `bin/mail receive-test`. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D8844
This commit is contained in:
parent
9a827096a7
commit
7654df5d3b
1 changed files with 4 additions and 4 deletions
|
@ -15,13 +15,13 @@ final class DifferentialRevisionMailReceiver
|
|||
protected function loadObject($pattern, PhabricatorUser $viewer) {
|
||||
$id = (int)trim($pattern, 'D');
|
||||
|
||||
$results = id(new DifferentialRevisionQuery())
|
||||
return id(new DifferentialRevisionQuery())
|
||||
->setViewer($viewer)
|
||||
->withIDs(array($id))
|
||||
->needReviewerStatus(true)
|
||||
->execute();
|
||||
|
||||
return head($results);
|
||||
->needReviewerAuthority(true)
|
||||
->needActiveDiffs(true)
|
||||
->executeOne();
|
||||
}
|
||||
|
||||
protected function processReceivedObjectMail(
|
||||
|
|
Loading…
Reference in a new issue