/**
  * @Route("/{slug}/stickied/toggle", name="forum_thread_stickied_toggle")
  * @ParamConverter("forum", class="StreamPerkForumBundle:Forum", options={"mapping": {"forumSlug": "slug"}})
  * @ParamConverter("thread", class="StreamPerkForumBundle:ForumThread", options={"mapping": {"forum": "forum", "slug": "slug"}})
  * @Security("is_granted('SHOW', forum) and is_granted('SHOW', thread) and is_granted('EDIT', thread)")
  */
 public function stickiedToggleAction(Forum $forum, ForumThread $thread)
 {
     $this->get('streamperk.forum_thread_manager')->persistAndFlush($thread->toggleStickied());
     return $this->redirectToRoute('forum_thread_index', ['forumSlug' => $forum->getSlug(), 'slug' => $thread->getSlug()]);
 }