From 230da1521d7f25d6aa32efcfd94395ff1cd996b8 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 24 Nov 2018 13:38:08 +0000 Subject: [PATCH] Update class.user.php to fix User removing bug User removing bug On CHV\Notification --- app/lib/classes/class.user.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/lib/classes/class.user.php b/app/lib/classes/class.user.php index 7bf71d6..cf0b5bc 100644 --- a/app/lib/classes/class.user.php +++ b/app/lib/classes/class.user.php @@ -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 {} \ No newline at end of file +class UserException extends Exception {}