mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Load parent relation for proper tag listing (#137)
This commit is contained in:
@@ -103,7 +103,7 @@ class Tags
|
|||||||
private function getTagsDocument(Request $request)
|
private function getTagsDocument(Request $request)
|
||||||
{
|
{
|
||||||
return json_decode($this->api->withParentRequest($request)->withQueryParams([
|
return json_decode($this->api->withParentRequest($request)->withQueryParams([
|
||||||
'include' => 'children,lastPostedDiscussion'
|
'include' => 'children,lastPostedDiscussion,parent'
|
||||||
])->get('/tags')->getBody(), true);
|
])->get('/tags')->getBody(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user