mirror of
https://github.com/flarum/core.git
synced 2025-08-23 00:23:25 +02:00
Adapt comment for flarum/core#875
This commit is contained in:
@@ -64,7 +64,7 @@ class AddForumTagsRelationship
|
|||||||
public function loadTagsRelationship(WillSerializeData $event)
|
public function loadTagsRelationship(WillSerializeData $event)
|
||||||
{
|
{
|
||||||
// Expose the complete tag list to clients by adding it as a
|
// Expose the complete tag list to clients by adding it as a
|
||||||
// relationship to the /api/forum endpoint. Since the Forum model
|
// relationship to the /api endpoint. Since the Forum model
|
||||||
// doesn't actually have a tags relationship, we will manually load and
|
// doesn't actually have a tags relationship, we will manually load and
|
||||||
// assign the tags data to it using an event listener.
|
// assign the tags data to it using an event listener.
|
||||||
if ($event->isController(ShowForumController::class)) {
|
if ($event->isController(ShowForumController::class)) {
|
||||||
|
Reference in New Issue
Block a user