From 43dff68ef5f54d0a9c1d8e891ec93ea2bfcbcc95 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:25:46 +0200 Subject: [PATCH] fix: switch to `UserSerializer` for `followedUsers` relationship (#39) --- extend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend.php b/extend.php index 788d790..7905915 100755 --- a/extend.php +++ b/extend.php @@ -75,7 +75,7 @@ ->modelPolicy(User::class, Access\UserPolicy::class), (new Extend\ApiSerializer(CurrentUserSerializer::class)) - ->hasMany('followedUsers', BasicUserSerializer::class), + ->hasMany('followedUsers', UserSerializer::class), (new Extend\ApiSerializer(BasicUserSerializer::class)) ->attributes(Api\AddBasicUserAttributes::class),