mirror of
https://github.com/flarum/core.git
synced 2025-10-11 06:54:26 +02:00
merges 5.5 and master into next-back
This commit is contained in:
@@ -173,6 +173,12 @@ class ShowDiscussionController extends AbstractShowController
|
||||
|
||||
$query->orderBy('time')->skip($offset)->take($limit)->with($include);
|
||||
|
||||
return $query->get()->all();
|
||||
$posts = $query->get()->all();
|
||||
|
||||
foreach ($posts as $post) {
|
||||
$post->discussion = $discussion;
|
||||
}
|
||||
|
||||
return $posts;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user