diff --git a/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php b/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php index 694db8e7d7..66cace32fe 100644 --- a/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php +++ b/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php @@ -78,8 +78,10 @@ final class PhabricatorRepositoryCommitHeraldWorker )); // TODO: This is complicated and needs to be sorted out properly for - // repository policy stuff. We might need an omniscient user here? - $viewer = new PhabricatorUser(); + // repository policy stuff. We might need an omniscient user here? This + // fakes a logged-in user. + $viewer = id(new PhabricatorUser()) + ->setPHID('PHID-USER-XXX'); $handles = id(new PhabricatorObjectHandleData($phids)) ->setViewer($viewer)