From 2aa76baafdda46e473728b1d2a013b4f72e8b451 Mon Sep 17 00:00:00 2001 From: w33b Date: Sat, 10 Jan 2026 22:35:21 +0100 Subject: [PATCH] Fix account deletion anonymizing comments --- app/Http/Controllers/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index c58ece8..10a4c76 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -151,7 +151,7 @@ class ProfileController extends Controller } // Update comments to deleted user - DB::table('comments')->where('commenter_id', '=', $user->id)->update(['commenter_id' => 1]); + DB::table('comments')->where('user_id', '=', $user->id)->update(['user_id' => 1]); // Delete Profile Picture if ($user->avatar) {