diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index da71b25..ac5a1ee 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -240,7 +240,8 @@ class UserController extends AbstractController $userTarget->getAddress(), 48 ), - 'star' => + 'owner' => $user->getId() === $userTarget->getId(), + 'star' => [ 'exist' => (bool) $userService->findUserStar( $user->getId(), diff --git a/templates/default/user/info.html.twig b/templates/default/user/info.html.twig index f112700..70897e1 100644 --- a/templates/default/user/info.html.twig +++ b/templates/default/user/info.html.twig @@ -119,12 +119,23 @@