Update FollowerController

This commit is contained in:
Daniel Supernault 2019-08-16 20:36:56 -06:00
parent 58fd2f4f65
commit 2cccbd772a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ class FollowerController extends Controller
if($remote == true && $follower) {
$this->sendUndoFollow($user, $target);
}
$follower->delete();
Follower::whereProfileId($user->id)
->whereFollowingId($target->id)
->delete();
}
Cache::forget('profile:following:'.$target->id);