diff --git a/src/Controller/FavouriteController.php b/src/Controller/FavouriteController.php index 86acad0e4..f7b91315c 100644 --- a/src/Controller/FavouriteController.php +++ b/src/Controller/FavouriteController.php @@ -21,7 +21,7 @@ public function __construct(private readonly GenerateHtmlClassService $classServ #[IsGranted('ROLE_USER')] public function __invoke(FavouriteInterface $subject, Request $request, FavouriteManager $manager): Response { - $this->validateCsrf('favourite', $request->request->get('token')); + $this->validateCsrf('up_vote', $request->request->get('token')); $manager->toggle($this->getUserOrThrow(), $subject);