Allow finding a post by discussion ID and number

This commit is contained in:
Toby Zerner 2015-05-14 22:34:37 +09:30
parent f0f20544c6
commit fbc63df63c

View File

@ -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;
}