소스 검색

Update AccountController

Daniel Supernault 6 년 전
부모
커밋
9154b3d630
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Http/Controllers/AccountController.php

+ 3 - 0
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: