From 9154b3d6305c19e6fed79f2b0908a3d6e0b44ab4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 2 Nov 2018 20:41:39 -0600 Subject: [PATCH] Update AccountController --- app/Http/Controllers/AccountController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index dd4af3ee..a8cb6a95 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -224,6 +224,9 @@ class AccountController extends Controller $class = get_class($profile); $filterable['id'] = $profile->id; $filterable['type'] = $class; + + Follower::whereProfileId($profile->id)->whereFollowingId($user->id)->delete(); + Notification::whereProfileId($user->id)->whereActorId($profile->id)->delete(); break; default: