mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
implement bookmarks total counter
This commit is contained in:
parent
3d74818303
commit
5b0a7bcb69
5 changed files with 62 additions and 52 deletions
|
|
@ -61,11 +61,13 @@ class TorrentController extends AbstractController
|
|||
'sensitive' => $torrentService->findLastTorrentSensitive($torrent->getId())->isValue(),
|
||||
'bookmark' =>
|
||||
[
|
||||
'active' => $torrentService->findUserLastTorrentBookmarkValue(
|
||||
'active' => (bool) $torrentService->findTorrentBookmark(
|
||||
$torrent->getId(),
|
||||
$user->getId()
|
||||
),
|
||||
'total' => 0,
|
||||
'total' => $torrentService->findTorrentBookmarksTotalByTorrentId(
|
||||
$torrent->getId()
|
||||
),
|
||||
],
|
||||
'pages' => []
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue