mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-09 04:59:06 -06:00
fix: eager loading regression from #2908
- category was duplicated awhile back in https://github.com/HDInnovations/UNIT3D-Community-Edition/pull/2908
This commit is contained in:
@@ -48,15 +48,15 @@ class ModerationController extends Controller
|
||||
return view('Staff.moderation.index', [
|
||||
'current' => now(),
|
||||
'pending' => Torrent::withoutGlobalScope(ApprovedScope::class)
|
||||
->with(['user.group', 'category', 'type', 'resolution', 'category'])
|
||||
->with(['user.group', 'category', 'type', 'resolution'])
|
||||
->where('status', '=', Torrent::PENDING)
|
||||
->get(),
|
||||
'postponed' => Torrent::withoutGlobalScope(ApprovedScope::class)
|
||||
->with(['user.group', 'moderated.group', 'category', 'type', 'resolution', 'category'])
|
||||
->with(['user.group', 'moderated.group', 'category', 'type', 'resolution'])
|
||||
->where('status', '=', Torrent::POSTPONED)
|
||||
->get(),
|
||||
'rejected' => Torrent::withoutGlobalScope(ApprovedScope::class)
|
||||
->with(['user.group', 'moderated.group', 'category', 'type', 'resolution', 'category'])
|
||||
->with(['user.group', 'moderated.group', 'category', 'type', 'resolution'])
|
||||
->where('status', '=', Torrent::REJECTED)
|
||||
->get(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user