mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
Merge pull request #1614 from pixelfed/staging
Update FollowerController
This commit is contained in:
commit
1438e76afe
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue