Fix account deletion anonymizing comments
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user