diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php
index 0da8c26..38205db 100644
--- a/src/Controller/TorrentController.php
+++ b/src/Controller/TorrentController.php
@@ -632,11 +632,11 @@ class TorrentController extends AbstractController
// Get total torrents
$total = $torrentService->findTorrentsTotal(
- $user->getId(),
+ $request->get('filter') ? 0 : $user->getId(),
$query,
- $user->getLocales(),
- $user->getCategories(),
- $user->isSensitive() ? false : null,
+ $request->get('filter') ? (array) $request->get('locales') : $user->getLocales(),
+ $request->get('filter') ? (array) $request->get('categories') : $user->getCategories(),
+ $request->get('filter') ? ($request->get('sensitive') ? null : false) : ($user->isSensitive() ? false : null),
!$user->isModerator() ? true : null,
!$user->isModerator() ? true : null,
);
@@ -644,11 +644,11 @@ class TorrentController extends AbstractController
// Create torrents list
$torrents = [];
foreach ($torrentService->findTorrents(
- $user->getId(),
+ $request->get('filter') ? 0 : $user->getId(),
$query,
- $user->getLocales(),
- $user->getCategories(),
- $user->isSensitive() ? false : null,
+ $request->get('filter') ? (array) $request->get('locales') : $user->getLocales(),
+ $request->get('filter') ? (array) $request->get('categories') : $user->getCategories(),
+ $request->get('filter') ? ($request->get('sensitive') ? null : false) : ($user->isSensitive() ? false : null),
!$user->isModerator() ? true : null,
!$user->isModerator() ? true : null,
$this->getParameter('app.pagination'),
diff --git a/templates/default/torrent/list.html.twig b/templates/default/torrent/list.html.twig
index 941b1c9..10187cb 100644
--- a/templates/default/torrent/list.html.twig
+++ b/templates/default/torrent/list.html.twig
@@ -11,18 +11,27 @@