Merge pull request #1614 from pixelfed/staging

Update FollowerController
This commit is contained in:
daniel 2019-08-16 20:37:47 -06:00 committed by GitHub
commit 1438e76afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);