From d5882c26249d7771d1b7ed91b54a676a41654d41 Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Fri, 11 Jun 2021 00:25:16 +0200 Subject: [PATCH] fixes flarum/core#2907 discussion shows parent after child due to missing parent include --- extend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend.php b/extend.php index c9956637..82eeee53 100644 --- a/extend.php +++ b/extend.php @@ -74,10 +74,10 @@ ->load('tags'), (new Extend\ApiController(FlarumController\ShowDiscussionController::class)) - ->addInclude(['tags', 'tags.state']), + ->addInclude(['tags', 'tags.state', 'tags.parent']), (new Extend\ApiController(FlarumController\CreateDiscussionController::class)) - ->addInclude(['tags', 'tags.state']), + ->addInclude(['tags', 'tags.state', 'tags.parent']), (new Extend\ApiController(FlarumController\ShowForumController::class)) ->addInclude(['tags', 'tags.parent'])