Fix account deletion anonymizing comments

This commit is contained in:
2026-01-10 22:35:21 +01:00
parent aa50bb1f72
commit 2aa76baafd

View File

@@ -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) {