diff --git a/extensions/tags/src/Api/Controller/ListTagsController.php b/extensions/tags/src/Api/Controller/ListTagsController.php index b2a43376d..0d2038805 100644 --- a/extensions/tags/src/Api/Controller/ListTagsController.php +++ b/extensions/tags/src/Api/Controller/ListTagsController.php @@ -24,6 +24,20 @@ class ListTagsController extends AbstractCollectionController */ public $serializer = TagSerializer::class; + /** + * {@inheritdoc} + */ + public $include = [ + 'parent', + ]; + + /** + * {@inheritdoc} + */ + public $optionalInclude = [ + 'lastDiscussion', + ]; + /** * @var \Flarum\Tags\Tag */