1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00
This commit is contained in:
Sami Mazouz
2024-05-10 17:46:19 +01:00
parent ac27cd03dd
commit d9e5ab4f11

View File

@@ -209,6 +209,7 @@ class DiscussionResource extends AbstractDatabaseResource
return $context->showing(self::class); return $context->showing(self::class);
}) })
->includable() ->includable()
// @todo: remove this, and send a second request from the frontend to /posts instead. Revert Serializer::addIncluded while you're at it.
->get(function (Discussion $discussion, Context $context) { ->get(function (Discussion $discussion, Context $context) {
$showingDiscussion = $context->showing(self::class); $showingDiscussion = $context->showing(self::class);