Changeset View
Changeset View
Standalone View
Standalone View
src/applications/feed/conduit/FeedQueryConduitAPIMethod.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
| if (!$view_type) { | if (!$view_type) { | ||||
| $view_type = 'data'; | $view_type = 'data'; | ||||
| } | } | ||||
| $limit = $request->getValue('limit'); | $limit = $request->getValue('limit'); | ||||
| if (!$limit) { | if (!$limit) { | ||||
| $limit = $this->getDefaultLimit(); | $limit = $this->getDefaultLimit(); | ||||
| } | } | ||||
| $filter_phids = $request->getValue('filterPHIDs'); | |||||
| if (!$filter_phids) { | |||||
| $filter_phids = array(); | |||||
| } | |||||
| $query = id(new PhabricatorFeedQuery()) | $query = id(new PhabricatorFeedQuery()) | ||||
| ->setLimit($limit) | ->setLimit($limit) | ||||
| ->setFilterPHIDs($filter_phids) | |||||
| ->setViewer($user); | ->setViewer($user); | ||||
| $filter_phids = $request->getValue('filterPHIDs'); | |||||
| if ($filter_phids) { | |||||
| $query->withFilterPHIDs($filter_phids); | |||||
| } | |||||
| $after = $request->getValue('after'); | $after = $request->getValue('after'); | ||||
| if (strlen($after)) { | if (strlen($after)) { | ||||
| $query->setAfterID($after); | $query->setAfterID($after); | ||||
| } | } | ||||
| $before = $request->getValue('before'); | $before = $request->getValue('before'); | ||||
| if (strlen($before)) { | if (strlen($before)) { | ||||
| $query->setBeforeID($before); | $query->setBeforeID($before); | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||