1
0
Fork 0
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:
epriestley 2014-04-24 13:47:32 -07:00
parent 9a827096a7
commit 7654df5d3b

View file

@ -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(