mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
Allow finding a post by discussion ID and number
This commit is contained in:
parent
f0f20544c6
commit
fbc63df63c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user