diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index 9ca9296..6a1746f 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -57,6 +57,15 @@ class TorrentController extends AbstractController [ 'id' => $torrent->getId(), 'added' => $torrent->getAdded(), + 'user' => + [ + 'id' => $torrent->getUserId(), + 'identicon' => $userService->identicon( + $userService->get( + $torrent->getUserId() + )->getAddress() + ), + ], 'scrape' => [ 'seeders' => (int) $torrent->getSeeders(), diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index 25b178d..f9b4161 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -177,6 +177,16 @@ {% endif %} +