|
|
@ -57,6 +57,15 @@ class TorrentController extends AbstractController |
|
|
|
[ |
|
|
|
[ |
|
|
|
'id' => $torrent->getId(), |
|
|
|
'id' => $torrent->getId(), |
|
|
|
'added' => $torrent->getAdded(), |
|
|
|
'added' => $torrent->getAdded(), |
|
|
|
|
|
|
|
'user' => |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'id' => $torrent->getUserId(), |
|
|
|
|
|
|
|
'identicon' => $userService->identicon( |
|
|
|
|
|
|
|
$userService->get( |
|
|
|
|
|
|
|
$torrent->getUserId() |
|
|
|
|
|
|
|
)->getAddress() |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
'scrape' => |
|
|
|
'scrape' => |
|
|
|
[ |
|
|
|
[ |
|
|
|
'seeders' => (int) $torrent->getSeeders(), |
|
|
|
'seeders' => (int) $torrent->getSeeders(), |
|
|
|