Update class.user.php to fix User removing bug
User removing bug On CHV\Notificationpull/38/head
parent
c73df94fbb
commit
230da1521d
|
@ -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 {}
|
||||
|
|
Loading…
Reference in New Issue