diff --git a/src/Api/Actions/Posts/IndexAction.php b/src/Api/Actions/Posts/IndexAction.php index d4a61df73..5dbb1842b 100644 --- a/src/Api/Actions/Posts/IndexAction.php +++ b/src/Api/Actions/Posts/IndexAction.php @@ -64,6 +64,9 @@ class IndexAction extends SerializeCollectionAction if ($discussionId = $request->get('discussions')) { $where['discussion_id'] = $discussionId; } + if ($number = $request->get('number')) { + $where['number'] = $number; + } if ($userId = $request->get('users')) { $where['user_id'] = $userId; }