diff --git a/extend.php b/extend.php index 8f1b835..2fd82a9 100644 --- a/extend.php +++ b/extend.php @@ -58,7 +58,7 @@ ->attribute('newFlagCount', AddNewFlagCountAttribute::class), (new Extend\ApiSerializer(ForumSerializer::class)) - ->mutate(AddFlagsApiAttributes::class), + ->attributes(AddFlagsApiAttributes::class), (new Extend\ApiController(ShowDiscussionController::class)) ->addInclude(['posts.flags', 'posts.flags.user']),