wip: scopes downloads to usrs

This commit is contained in:
2025-05-11 00:12:55 -05:00
parent 854177a121
commit 6817bd8c80
5 changed files with 115 additions and 5 deletions

View File

@@ -18,10 +18,10 @@ final class IndexController extends AbstractController
#[Route('/', name: 'app_index')]
public function index(): Response
{
// dd($this->getUser());
// dd($this->getUser()->getActiveDownloads());
return $this->render('index/index.html.twig', [
'active_downloads' => $this->downloadRepository->getActivePaginated(),
'recent_downloads' => $this->downloadRepository->latest(5),
'active_downloads' => $this->getUser()->getActiveDownloads(),
'recent_downloads' => $this->getUser()->getDownloads(),
'popular_movies' => $this->tmdb->popularMovies(1, 6),
'popular_tvshows' => $this->tmdb->popularTvShows(1, 6),
]);