1
0
Fork 0
forked from mirror/pixelfed

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) { if($remote == true && $follower) {
$this->sendUndoFollow($user, $target); $this->sendUndoFollow($user, $target);
} }
$follower->delete(); Follower::whereProfileId($user->id)
->whereFollowingId($target->id)
->delete();
} }
Cache::forget('profile:following:'.$target->id); Cache::forget('profile:following:'.$target->id);