mirror of
https://github.com/flarum/core.git
synced 2025-10-09 22:16:51 +02:00
Extract current user attributes into a separate serializer
This prevents the unread notifications count query being run for every post by the currently authenticated user
This commit is contained in:
@@ -17,7 +17,7 @@ class ShowAction extends SerializeResourceAction
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $serializer = 'Flarum\Api\Serializers\UserSerializer';
|
||||
public static $serializer = 'Flarum\Api\Serializers\CurrentUserSerializer';
|
||||
|
||||
/**
|
||||
* The relationships that are available to be included, and which ones are
|
||||
|
Reference in New Issue
Block a user