Differential D18395 Diff 44236 src/applications/differential/controller/DifferentialRevisionViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialRevisionViewController.php
Show First 20 Lines • Show All 802 Lines • ▼ Show 20 Lines | private function loadOtherRevisions( | ||||
if (!$path_map) { | if (!$path_map) { | ||||
return array(); | return array(); | ||||
} | } | ||||
$recent = (PhabricatorTime::getNow() - phutil_units('30 days in seconds')); | $recent = (PhabricatorTime::getNow() - phutil_units('30 days in seconds')); | ||||
$query = id(new DifferentialRevisionQuery()) | $query = id(new DifferentialRevisionQuery()) | ||||
->setViewer($this->getRequest()->getUser()) | ->setViewer($this->getRequest()->getUser()) | ||||
->withStatus(DifferentialLegacyQuery::STATUS_OPEN) | ->withIsOpen(true) | ||||
->withUpdatedEpochBetween($recent, null) | ->withUpdatedEpochBetween($recent, null) | ||||
->setOrder(DifferentialRevisionQuery::ORDER_MODIFIED) | ->setOrder(DifferentialRevisionQuery::ORDER_MODIFIED) | ||||
->setLimit(10) | ->setLimit(10) | ||||
->needFlags(true) | ->needFlags(true) | ||||
->needDrafts(true) | ->needDrafts(true) | ||||
->needReviewers(true); | ->needReviewers(true); | ||||
foreach ($path_map as $path => $path_id) { | foreach ($path_map as $path => $path_id) { | ||||
▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines |