From f7bb4002b44e9dff9843a34f3b49b18cfb4fd829 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 11 Aug 2019 19:02:11 +0200 Subject: [PATCH] remove scripts --- src/Controller/FediPlanController.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Controller/FediPlanController.php b/src/Controller/FediPlanController.php index 5c0741d..1af0292 100644 --- a/src/Controller/FediPlanController.php +++ b/src/Controller/FediPlanController.php @@ -213,15 +213,14 @@ class FediPlanController extends AbstractController */ public function scheduled() { - return $this->render("fediplan/scheduled.html.twig"); } /** - * @Route("/scheduled/messages/{max_id}", name="load_more", options={"expose"=true}) + * @Route("/scheduled/messages/{max_id}", options={"expose"=true}, name="load_more") */ - public function loadMoreAction(Request $request, Mastodon_api $mastodon_api, String $max_id = null){ + public function loadMoreAction(Mastodon_api $mastodon_api, String $max_id = null){ $user = $this->getUser(); @@ -249,10 +248,9 @@ class FediPlanController extends AbstractController } /** - * @Method({"POST"}) - * @Route("/scheduled/delete/messages/{id}", name="delete_message", options={"expose"=true}) + * @Route("/scheduled/delete/messages/{id}", options={"expose"=true}, name="delete_message", methods={"POST"}) */ - public function deleteMessage(Request $request, Mastodon_api $mastodon_api, String $id = null){ + public function deleteMessage(Mastodon_api $mastodon_api, String $id = null){ $user = $this->getUser(); @@ -273,7 +271,6 @@ class FediPlanController extends AbstractController */ public function logout() { - return $this->render("fediplan/index.html.twig"); }