Merge pull request #38 from Codfish246/patch-1

Update class.user.php to fix User removing bug
pull/40/head
Rodolfo Berrios 2018-11-24 11:36:43 -03:00 committed by GitHub
commit e49e4292be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -398,12 +398,6 @@ class User {
Image::delete($user_image['image_id']);
}
// Remove related notifications tied to this user (follows)
Notification::delete([
'table' => 'users',
'user_id' => $user['id'],
]);
// Track stats
Stat::track([
'action' => 'delete',
@ -615,4 +609,4 @@ class User {
}
class UserException extends Exception {}
class UserException extends Exception {}