1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00

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

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