From fbc63df63ca729e073806536271b59f3259da79b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 22:34:37 +0930 Subject: [PATCH] Allow finding a post by discussion ID and number --- framework/core/src/Api/Actions/Posts/IndexAction.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/core/src/Api/Actions/Posts/IndexAction.php b/framework/core/src/Api/Actions/Posts/IndexAction.php index d4a61df73..5dbb1842b 100644 --- a/framework/core/src/Api/Actions/Posts/IndexAction.php +++ b/framework/core/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; }