add: display reports on torrent page

- closes request #4353
This commit is contained in:
HDVinnie
2024-12-01 22:15:43 -05:00
parent fdffaa383a
commit 72dd3c5159
4 changed files with 98 additions and 3 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class TorrentController extends Controller
$user = $request->user();
$torrent = Torrent::withoutGlobalScope(ApprovedScope::class)
->with(['user', 'comments', 'category', 'type', 'resolution', 'subtitles', 'playlists'])
->with(['user', 'comments', 'category', 'type', 'resolution', 'subtitles', 'playlists', 'reports'])
->withCount([
'bookmarks',
'seeds' => fn ($query) => $query->where('active', '=', true)->where('visible', '=', true),