mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Make sure discussion post IDs are ordered correctly
This commit is contained in:
parent
aae40472cf
commit
4c8a60ed7a
|
@ -92,7 +92,7 @@ class ShowAction extends SerializeResourceAction
|
|||
|
||||
$discussion = $this->discussions->findOrFail($request->get('id'), $user);
|
||||
|
||||
$discussion->posts_ids = $discussion->visiblePosts($user)->lists('id');
|
||||
$discussion->posts_ids = $discussion->visiblePosts($user)->orderBy('time')->lists('id');
|
||||
|
||||
if (in_array('posts', $request->include)) {
|
||||
$length = strlen($prefix = 'posts.');
|
||||
|
|
Loading…
Reference in New Issue
Block a user