mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update FollowerController
This commit is contained in:
parent
58fd2f4f65
commit
2cccbd772a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue