1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-20 03:31:10 +01:00

Wrong method name.

Auditors: btrahan
This commit is contained in:
epriestley 2014-01-26 15:30:38 -08:00
parent 014a873773
commit 8735ec4dbe

View file

@ -53,7 +53,7 @@ final class ConduitAPI_differential_creatediff_Method extends ConduitAPIMethod {
$diff->setBranch($request->getValue('branch'));
$diff->setCreationMethod($request->getValue('creationMethod'));
$diff->setAuthorPHID($request->getViewer()->getPHID());
$diff->setAuthorPHID($request->getUser()->getPHID());
$diff->setBookmark($request->getValue('bookmark'));
// TODO: Remove this eventually; for now continue writing the UUID. Note
@ -64,7 +64,7 @@ final class ConduitAPI_differential_creatediff_Method extends ConduitAPIMethod {
$repository_phid = $request->getValue('repositoryPHID');
if ($repository_phid) {
$repository = id(new PhabricatorRepositoryQuery())
->setViewer($request->getViewer())
->setViewer($request->getUser())
->withPHIDs(array($repository_phid))
->executeOne();
if ($repository) {