Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionBrowseController.php
Show First 20 Lines • Show All 1,752 Lines • ▼ Show 20 Lines | if (!$path_id) { | ||||
return null; | return null; | ||||
} | } | ||||
$recent = (PhabricatorTime::getNow() - phutil_units('30 days in seconds')); | $recent = (PhabricatorTime::getNow() - phutil_units('30 days in seconds')); | ||||
$revisions = id(new DifferentialRevisionQuery()) | $revisions = id(new DifferentialRevisionQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPath($repository->getID(), $path_id) | ->withPath($repository->getID(), $path_id) | ||||
->withStatus(DifferentialLegacyQuery::STATUS_OPEN) | ->withIsOpen(true) | ||||
->withUpdatedEpochBetween($recent, null) | ->withUpdatedEpochBetween($recent, null) | ||||
->setOrder(DifferentialRevisionQuery::ORDER_MODIFIED) | ->setOrder(DifferentialRevisionQuery::ORDER_MODIFIED) | ||||
->setLimit(10) | ->setLimit(10) | ||||
->needReviewers(true) | ->needReviewers(true) | ||||
->needFlags(true) | ->needFlags(true) | ||||
->needDrafts(true) | ->needDrafts(true) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |