refactor: rename warnings/bans/notes <-> user/staff relations

These relations are older than the laravel convention for using camel case. Clean up their names to match modern styling and make them easier to read.
This commit is contained in:
Roardom
2025-11-08 10:07:20 +00:00
parent e922fbc386
commit 72a1e1a885
28 changed files with 109 additions and 127 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ class HomeController extends Controller
fn () => User::with('group', 'privacy')
->withCount([
'warnings' => function (Builder $query): void {
$query->whereNotNull('torrent')->where('active', true);
$query->whereNotNull('torrent_id')->where('active', true);
},
])
->where('last_action', '>', now()->subMinutes(60))