diff --git a/src/Api/UserEndpoint.php b/src/Api/UserEndpoint.php index d034cf7..454245d 100644 --- a/src/Api/UserEndpoint.php +++ b/src/Api/UserEndpoint.php @@ -320,16 +320,7 @@ public function actionOverview(int $id): void ], 'avatarUrl' => $user->getAvatarUrl(), 'created' => $user->getCreateDate(), - 'meta' => (static function (array $data): array { - $return = []; - foreach ($data as $key => $value) { - if (\is_scalar($value) === true) { - $return[$key] = $value; - } - } - - return $return; - })($user->getMetaData()), + 'meta' => $user->getMetaData(), ]); }